Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Commit

Permalink
Improve billing states
Browse files Browse the repository at this point in the history
  • Loading branch information
NicHaley committed Jan 19, 2024
1 parent 5dda19a commit 4c1f9f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
6 changes: 4 additions & 2 deletions apps/app/src/app/(authenticated)/[workspace]/billing/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,11 @@ export default async function Billing({
<form action={proCheckoutSession} method="POST">
<Button
className="w-full px-3 py-2 mt-6"
color={hasCustomSubscription ? "gray" : "primary"}
disabled={Boolean(hasCustomSubscription)}
type="submit"
>
Buy plan
{hasCustomSubscription ? "Contact support" : "Buy plan"}
</Button>
</form>
)}
Expand Down Expand Up @@ -259,10 +260,11 @@ export default async function Billing({
<form action={customCheckoutSession} method="POST">
<Button
className="w-full px-3 py-2 mt-6"
color={hasProSubscription ? "gray" : "primary"}
disabled={Boolean(hasProSubscription)}
type="submit"
>
Buy plan
{hasProSubscription ? "Contact support" : "Buy plan"}
</Button>
</form>
) : (
Expand Down
14 changes: 7 additions & 7 deletions apps/app/src/app/(authenticated)/[workspace]/nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Bars3Icon,
HomeIcon,
XMarkIcon,
// CreditCardIcon,
CreditCardIcon,
PuzzlePieceIcon,
CodeBracketSquareIcon,
ArrowRightOnRectangleIcon,
Expand Down Expand Up @@ -58,12 +58,12 @@ export function Nav({
icon: CodeBracketSquareIcon,
current: pathname === `/${workspace}/developers`,
},
// {
// name: "Billing",
// href: `/${workspace}/billing`,
// icon: CreditCardIcon,
// current: pathname === `/${workspace}/billing`,
// },
{
name: "Billing",
href: `/${workspace}/billing`,
icon: CreditCardIcon,
current: pathname === `/${workspace}/billing`,
},
];

return (
Expand Down

0 comments on commit 4c1f9f9

Please sign in to comment.