Skip to content

Commit

Permalink
🐛 Dismiss dialog on link click
Browse files Browse the repository at this point in the history
  • Loading branch information
lukevella committed Sep 21, 2024
1 parent 806df18 commit 52e1582
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/web/src/components/pay-wall-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,13 @@ export function PayWallDialog({ children, ...forwardedProps }: DialogProps) {
i18nKey="cancelAnytime"
defaults="Cancel anytime from your <a>billing page</a>."
components={{
a: <Link className="text-link" href="/settings/billing" />,
a: (
<Link
onClick={() => dialog.dismiss()}
className="text-link"
href="/settings/billing"
/>
),
}}
/>
</p>
Expand Down

0 comments on commit 52e1582

Please sign in to comment.