feat(pages): add /application/guilds/join (#2)

This commit is contained in:
Divlo
2021-11-13 21:50:34 +01:00
committed by GitHub
parent d8fab08585
commit accd36d1fc
23 changed files with 4767 additions and 5393 deletions

View File

@ -20,7 +20,7 @@ const ForgotPassword: React.FC<FooterProps> = (props) => {
const { t } = useTranslation()
const { version } = props
const { formState, message, errors, getErrorTranslation, handleSubmit } =
const { fetchState, message, errors, getErrorTranslation, handleSubmit } =
useForm({ validateSchemaObject: { email: userSchema.email } })
const onSubmit: HandleSubmitCallback = async (formData) => {
@ -65,7 +65,7 @@ const ForgotPassword: React.FC<FooterProps> = (props) => {
</AuthenticationForm>
<FormState
id='message'
state={formState}
state={fetchState}
message={
message != null ? message : getErrorTranslation(errors.email)
}

View File

@ -21,7 +21,7 @@ const ResetPassword: React.FC<FooterProps> = (props) => {
const router = useRouter()
const { version } = props
const { formState, message, errors, getErrorTranslation, handleSubmit } =
const { fetchState, message, errors, getErrorTranslation, handleSubmit } =
useForm({ validateSchemaObject: { password: userSchema.password } })
const onSubmit: HandleSubmitCallback = async (formData) => {
@ -64,7 +64,7 @@ const ResetPassword: React.FC<FooterProps> = (props) => {
</AuthenticationForm>
<FormState
id='message'
state={formState}
state={fetchState}
message={
message != null ? message : getErrorTranslation(errors.password)
}