-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add pro plan validation, customers table -> app_metadata
- Loading branch information
Showing
36 changed files
with
326 additions
and
144 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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import Spinner from '@/_components/spinner'; | ||
|
||
const Loading = () => <Spinner className="mx-auto" />; | ||
const Loading = () => <Spinner className="mx-auto mt-16" />; | ||
|
||
export default Loading; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import PageModalLoading from '@/_components/page-modal-loading'; | ||
|
||
const Loading = PageModalLoading; | ||
|
||
export default Loading; |
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,61 @@ | ||
import BackButton from '@/_components/back-button'; | ||
import PageModalHeader from '@/_components/page-modal-header'; | ||
import UpgradePlanButton from '@/_components/upgrade-plan-button'; | ||
import getCurrentUser from '@/_queries/get-current-user'; | ||
import formatTitle from '@/_utilities/format-title'; | ||
|
||
export const metadata = { title: formatTitle(['Upgrade plan']) }; | ||
|
||
const Page = async () => { | ||
const user = await getCurrentUser(); | ||
if (!user) return; | ||
|
||
return ( | ||
<> | ||
<PageModalHeader title="Upgrade plan" /> | ||
<div className="space-y-14 px-4 pb-8 pt-6 sm:px-8"> | ||
<table className="w-full"> | ||
<thead> | ||
<tr> | ||
<th></th> | ||
<th className="pb-2 text-xl font-normal text-fg-4">Free</th> | ||
<th className="pb-2 text-xl font-normal">Pro</th> | ||
</tr> | ||
</thead> | ||
<tbody className="divide-y divide-alpha-1"> | ||
<tr> | ||
<td className="py-2 text-fg-4">Active subject limit</td> | ||
<td className="py-2 text-center text-fg-4">2</td> | ||
<td className="py-2 text-center">Unlimited</td> | ||
</tr> | ||
<tr> | ||
<td className="py-2 text-fg-4">Priority customer support</td> | ||
<td className="py-2 text-center text-fg-4">x</td> | ||
<td className="py-2 text-center">✓</td> | ||
</tr> | ||
<tr> | ||
<td className="py-2 text-fg-4">Support our team</td> | ||
<td className="py-2 text-center text-fg-4">x</td> | ||
<td className="py-2 text-center">✓</td> | ||
</tr> | ||
<tr> | ||
<td></td> | ||
<td className="pt-2 text-center text-fg-4">$0</td> | ||
<td className="pt-2 text-center"> | ||
$19<span className="text-xs"> / month</span> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<div className="flex gap-4"> | ||
<BackButton className="w-full" colorScheme="transparent"> | ||
Close | ||
</BackButton> | ||
<UpgradePlanButton user={user} /> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default Page; |
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.