-
Notifications
You must be signed in to change notification settings - Fork 40
fix: Add Back button to Pricing page #398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
22016c1
90b254f
907ab1e
b33cd14
cf9fd97
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,7 @@ import { useConditionalPlan } from '@/hooks' | |
| import { useSearchParams } from 'next/navigation' | ||
| import { useIframe } from '@/contexts/IframeContext' | ||
| import { useRecordRefcode } from '@/lib/referrals/hooks' | ||
| import Link from 'next/link' | ||
|
|
||
| const PricingTable = ({ | ||
| email, | ||
|
|
@@ -20,10 +21,16 @@ const PricingTable = ({ | |
| const { isIframe } = useIframe() | ||
|
|
||
| return ( | ||
| <div className="flex flex-col justify-center items-center min-h-screen"> | ||
| <div className="flex flex-col justify-center items-center min-h-screen relative"> | ||
| <div className="my-6"> | ||
| <Logo /> | ||
| </div> | ||
| <Link | ||
| href="https://storacha.console.network/logout" | ||
| className="absolute top-4 right-4 bg-hot-red text-white px-4 py-2 rounded-full shadow-md hover:border-white transition" | ||
| > | ||
| ← Back | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "Back" doesn't feel like it gives the user enough context here - I think it would be better to have this button say "Nevermind, Log Me Out" or something along those lines - I get that the only sensible thing to do if they want to leave this page is to log out, but "Back" makes it sound like we're going to do something else and I want to be super clear with the user about what they're doing. |
||
| </Link> | ||
| <div className="max-w-screen-lg font-epilogue text-black text-center bg-white border border-hot-red rounded-2xl overflow-hidden p5 mx-4 mb-4"> | ||
| {referredBy ? ( | ||
| <> | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this URL should be different per-environment - in fact, does it even need to be an absolute URL? why not use a relative URL here?