diff --git a/src/hooks/forms/useSignUpForm.ts b/src/hooks/forms/useSignUpForm.ts index 94d6c8f1..0906ebf3 100644 --- a/src/hooks/forms/useSignUpForm.ts +++ b/src/hooks/forms/useSignUpForm.ts @@ -6,6 +6,7 @@ import { isError } from '@tanstack/react-query' import { useState } from 'react' import { useForm } from 'react-hook-form' import { useTranslation } from 'react-i18next' +import { notify } from 'react-native-notificated' const defaultValues: AuthRegisterLoginDto = { email: '', @@ -41,6 +42,13 @@ export const useSignUpForm = () => { setError('') await mutateAsync({ data }) + notify('success', { + params: { + style: { multiline: 100 }, + title: 'SUCCESS', + description: t('sign_up_screen.created_new_account', { userEmail: data.email }), + }, + }) } catch (e) { if (isError(e)) { setError(e.message) diff --git a/src/i18n/translations/en.json b/src/i18n/translations/en.json index 8ad79888..7c080ec8 100644 --- a/src/i18n/translations/en.json +++ b/src/i18n/translations/en.json @@ -155,6 +155,7 @@ "sign_up": "Sign up" }, "sign_up_screen": { + "created_new_account": "A new account has been created. An email with an activation link was sent to {{userEmail}}.", "email_label": "Email", "email_placeholder": "Enter your email", "first_name_label": "First name", diff --git a/src/i18n/translations/pl.json b/src/i18n/translations/pl.json index 028ca4d2..a909aec4 100644 --- a/src/i18n/translations/pl.json +++ b/src/i18n/translations/pl.json @@ -154,7 +154,7 @@ "sign_up": "Zarejestruj" }, "sign_up_screen": { - "agree_terms_label": "Zgadzam się z warunkami użytkowania", + "created_new_account": "Nowe konto zostało stworzone. Email z linkiem weryfikacyjnym został wysłany na {{userEmail}}.", "newsletter_label": "Subskrybuj nasz newsletter", "sign_up": "Zarejestruj", "email_label": "E-mail",