Skip to content

Commit

Permalink
Merge branch 'main' of github.com:saas-js/saas-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Pagebakers committed Feb 21, 2024
2 parents 73d09d9 + 21d603f commit bcd6d98
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 1,963 deletions.
6 changes: 6 additions & 0 deletions .changeset/good-penguins-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@saas-ui/auth': patch
'website': patch
---

Added missing translations
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,9 @@ const translations = {
forgotPasswordSuccess: 'Wachtwoord reset link verstuurd',
forgotPasswordSuccessDescription:
'Check je e-mail voor instructies om je wachtwoord te wijzigen.',
updatePasswordSuccess: 'Uw wachtwoord is geüpdatet',
updatePasswordSuccessDescription:
'U kunt nu inloggen met uw nieuwe wachtwoord.',
updatePassword: 'Wachtwoord wijzigen',
updatePasswordSubmit: 'Wachtwoord opslaan',
backToLogin: 'Terug naar inloggen',
Expand Down
9 changes: 9 additions & 0 deletions packages/saas-ui-auth/src/components/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ const defaultTranslations = {
'Please check your email for instructions to reset your password.',
updatePassword: 'Update password',
updatePasswordSubmit: 'Update password',
updatePasswordSuccess: 'Your password has been updated',
updatePasswordSuccessDescription:
'You can now log in with your new password.',
backToLogin: 'Back to log in',
noAccount: 'No account yet?',
haveAccount: 'Already have an account?',
Expand Down Expand Up @@ -350,6 +353,12 @@ export const Auth: React.FC<AuthProps> = (props) => {
...fields?.submit,
},
}}
renderSuccess={() => (
<AuthFormSuccess
title={translations.updatePasswordSuccess}
description={translations.updatePasswordSuccessDescription}
/>
)}
{...rest}
/>
)
Expand Down
Loading

0 comments on commit bcd6d98

Please sign in to comment.