Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
collinschaafsma committed Oct 19, 2024
1 parent 0cb02e7 commit 8026615
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 4 additions & 6 deletions app/(marketing)/checkout/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ import { redirect } from "next/navigation"
import { checkout } from "@/services/checkout"
import { EmbeddedStripeForm } from "./_components/embedded-stripe-form"

export default async function CheckoutPage(
props: {
searchParams: Promise<{ p: string }>
}
) {
const searchParams = await props.searchParams;
export default async function CheckoutPage(props: {
searchParams: Promise<{ p: string }>
}) {
const searchParams = await props.searchParams
const { p } = searchParams

// create a checkout session
Expand Down
10 changes: 4 additions & 6 deletions app/(marketing)/checkout/thank-you/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ import { logger } from "@/lib/logger"
import { Button } from "@/components/ui/button"
import { AuthBoundary } from "@/components/boundaries"

export default async function ThankYouPage(
props: {
searchParams: Promise<{ id: string | undefined }>
}
) {
const searchParams = await props.searchParams;
export default async function ThankYouPage(props: {
searchParams: Promise<{ id: string | undefined }>
}) {
const searchParams = await props.searchParams
const checkoutResponse = await checkout.sessions.get({
sessionId: searchParams.id as string,
})
Expand Down

0 comments on commit 8026615

Please sign in to comment.