Skip to content
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

feat: reload page on success button #4106

Merged
merged 2 commits into from
Jan 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions packages/webapp/pages/plus/success.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
ButtonSize,
ButtonVariant,
} from '@dailydotdev/shared/src/components/buttons/Button';
import Link from '@dailydotdev/shared/src/components/utilities/Link';
import { webappUrl } from '@dailydotdev/shared/src/lib/constants';
import { NextSeo } from 'next-seo';
import { getPlusLayout } from '../../components/layouts/PlusLayout/PlusLayout';
Expand Down Expand Up @@ -44,15 +43,14 @@ const PlusSuccessPage = (): ReactElement => {
>
Success! Your payment is complete, you’re all set.
</Typography>
<Link href={webappUrl} passHref>
<Button
variant={ButtonVariant.Primary}
tag="a"
size={ButtonSize.Large}
>
Back to daily.dev
</Button>
</Link>
<Button
variant={ButtonVariant.Primary}
tag="a"
href={webappUrl}
size={ButtonSize.Large}
>
Back to daily.dev
</Button>
</div>
</div>
</>
Expand Down
Loading