-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add a link to the customer self-service billing portal (#84)
This will allow customers to change their billing details. Might be worth rethinking where this link goes, but @heyjay44 and I think this makes sense for now. <img width="1247" alt="Screenshot 2024-01-18 at 4 41 02 PM" src="https://github.com/web3-storage/console/assets/1113/2c479b71-b766-41db-909a-17690df722f3">
- Loading branch information
Showing
3 changed files
with
15 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,8 +59,18 @@ export function UsageBar (): ReactNode { | |
return ( | ||
<div className='w-full'> | ||
{plan?.product ? ( | ||
<div className='lg:text-right text-xs tracking-wider font-mono'> | ||
Plan: <strong>{Plans[plan.product]?.name ?? plan.product}</strong> <a className='underline' href='mailto:[email protected]?subject=How%20to%20change%20my%20payment%20plan?' title='Automated support for switching plans is currently in progress. to change your plan, please email [email protected].'>change</a> | ||
<div className='lg:text-right text-xs tracking-wider font-mono flex flex-row justify-end space-x-2'> | ||
<div>Plan: <strong>{Plans[plan.product]?.name ?? plan.product}</strong></div> | ||
<a className='underline' | ||
href='mailto:[email protected]?subject=How%20to%20change%20my%20payment%20plan?' | ||
title='Automated support for switching plans is currently in progress. to change your plan, please email [email protected].'> | ||
change plan | ||
</a> | ||
<a className='underline' | ||
href={process.env.NEXT_PUBLIC_STRIPE_CUSTOMER_PORTAL_LINK} | ||
target='_blank' rel='noopener noreferrer'> | ||
update billing | ||
</a> | ||
</div> | ||
) : null} | ||
{usage && limit ? ( | ||
|