-
-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clients: move checkout components to a dedicated package
- Loading branch information
1 parent
2d05398
commit 35e7b0a
Showing
49 changed files
with
2,060 additions
and
864 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
clients/apps/web/src/app/checkout/[clientSecret]/ClientPage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
'use client' | ||
|
||
import Checkout from '@/components/Checkout/Checkout' | ||
import type { CheckoutPublic } from '@polar-sh/sdk/models/components/checkoutpublic' | ||
|
||
const ClientPage = ({ | ||
checkout, | ||
embed, | ||
theme, | ||
prefilledParameters, | ||
}: { | ||
checkout: CheckoutPublic | ||
embed: boolean | ||
prefilledParameters: Record<string, string> | ||
theme?: 'light' | 'dark' | ||
}) => { | ||
return ( | ||
<Checkout | ||
clientSecret={checkout.clientSecret} | ||
prefilledParameters={prefilledParameters} | ||
theme={theme} | ||
embed={embed} | ||
/> | ||
) | ||
} | ||
|
||
export default ClientPage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.