Skip to content

Commit

Permalink
privacy policy link more neat
Browse files Browse the repository at this point in the history
  • Loading branch information
kearfy committed Apr 15, 2024
1 parent 924b0d1 commit 078e3fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/app/[locale]/(public)/account/create-profile/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,20 +211,21 @@ export default function CreateProfile() {
)}
</div>
</CardContent>
<CardFooter className="flex flex-col gap-2">
<CardFooter className="flex flex-col gap-4">
<Button
disabled={!isValid || !isBirthdateReady}
type="submit"
>
{t('button.continue')}
</Button>
{privacy_policy && (
<p>
<p className="text-xs text-muted-foreground">
{t.rich('privacy-policy', {
link: (children) => (
<Link
href={privacy_policy ?? '#'}
target="_blank"
className="text-foreground hover:underline"
>
{children}
</Link>
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@
"button": {
"continue": "Continue"
},
"privacy-policy": "By creating an account with {brand_name}, you agree to <link>our privacy policy</link>."
"privacy-policy": "By creating an account with {brand_name}, you agree to our <link>privacy policy</link>."
},
"create-passkey": {
"title": "Create a Passkey",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/nl/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@
},
"tagline": "om inschrijving te voltooien",
"title": "Profiel aanmaken",
"privacy-policy": "Door een account te maken bij {brand_name}, ga je akkoord met <link>onze privacy voorwaarden</link>."
"privacy-policy": "Door een account te maken bij {brand_name}, ga je akkoord met onze <link>privacy voorwaarden</link>."
},
"create-passkey": {
"created": {
Expand Down

0 comments on commit 078e3fe

Please sign in to comment.