mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-30 10:42:34 +05:30
#86: fix form loading state for auth components
This commit is contained in:
parent
ecf41dd725
commit
10200413bb
@ -11,7 +11,7 @@ export default function Activation() {
|
||||
return {
|
||||
Title: () => <AuthTitle title={messages.accountActivationTitle} />,
|
||||
Body,
|
||||
Footer: () => <Button color="blue" label={messages.confirmEmail} />,
|
||||
Footer: () => <Button color="blue" label={messages.confirmEmail} type="submit" />,
|
||||
Links: () => <RejectionLink label={messages.didNotReceivedEmail} />
|
||||
};
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ export default function ChangePassword() {
|
||||
return {
|
||||
Title: () => <AuthTitle title={messages.changePasswordTitle} />,
|
||||
Body,
|
||||
Footer: () => <Button color="darkBlue" label={messages.change} />,
|
||||
Footer: () => <Button color="darkBlue" label={messages.change} type="submit" />,
|
||||
Links: () => <RejectionLink label={messages.skipThisStep} />
|
||||
};
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ export default function ForgotPassword() {
|
||||
return {
|
||||
Title: () => <AuthTitle title={messages.title} />,
|
||||
Body,
|
||||
Footer: () => <Button color="lightViolet" autoFocus label={messages.sendMail} />,
|
||||
Footer: () => <Button color="lightViolet" autoFocus label={messages.sendMail} type="submit" />,
|
||||
Links: () => <RejectionLink label={messages.alreadyHaveCode} />
|
||||
};
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ export default function Login() {
|
||||
return {
|
||||
Title: () => <AuthTitle title={messages.loginTitle} />,
|
||||
Body,
|
||||
Footer: () => <Button color="green" label={messages.next} />,
|
||||
Footer: () => <Button color="green" label={messages.next} type="submit" />,
|
||||
Links: () => null
|
||||
};
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ export default function Password() {
|
||||
return {
|
||||
Title: () => <AuthTitle title={messages.passwordTitle} />,
|
||||
Body,
|
||||
Footer: () => <Button color="green" label={messages.signInButton} />,
|
||||
Footer: () => <Button color="green" label={messages.signInButton} type="submit" />,
|
||||
Links: () => <RejectionLink label={messages.forgotPassword} />
|
||||
};
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ export default function Permissions() {
|
||||
return {
|
||||
Title: () => <AuthTitle title={messages.permissionsTitle} />,
|
||||
Body,
|
||||
Footer: () => <Button color="orange" autoFocus label={messages.approve} />,
|
||||
Footer: () => <Button color="orange" autoFocus label={messages.approve} type="submit" />,
|
||||
Links: () => <RejectionLink label={messages.decline} />
|
||||
};
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ export default function RecoverPassword() {
|
||||
return {
|
||||
Title: () => <AuthTitle title={messages.title} />,
|
||||
Body,
|
||||
Footer: () => <Button color="lightViolet" label={changePassword.change} />,
|
||||
Footer: () => <Button color="lightViolet" label={changePassword.change} type="submit" />,
|
||||
Links: () => <RejectionLink label={messages.contactSupport} />
|
||||
};
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ export default function Register() {
|
||||
return {
|
||||
Title: () => <AuthTitle title={messages.registerTitle} />,
|
||||
Body,
|
||||
Footer: () => <Button color="blue" label={messages.signUpButton} />,
|
||||
Footer: () => <Button color="blue" label={messages.signUpButton} type="submit" />,
|
||||
Links: () => <RejectionLink label={activationMessages.didNotReceivedEmail} />
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user