This commit is contained in:
Manav Rathi 2024-10-08 13:14:29 +05:30
parent 8ece709661
commit 8b64c6d2bc
No known key found for this signature in database
2 changed files with 9 additions and 6 deletions

View File

@ -1,6 +1,6 @@
import { isWeakPassword } from "@/accounts/utils";
import { LoadingButton } from "@/base/components/mui/LoadingButton";
import ShowHidePassword from "@ente/shared/components/Form/ShowHidePassword";
import SubmitButton from "@ente/shared/components/SubmitButton";
import { Box, Input, TextField, Typography } from "@mui/material";
import { Formik } from "formik";
import { t } from "i18next";
@ -137,12 +137,15 @@ function SetPasswordForm(props: SetPasswordFormProps) {
</Typography>
<Box my={4}>
<SubmitButton
sx={{ my: 0 }}
<LoadingButton
fullWidth
color="accent"
type="submit"
loading={loading}
buttonText={props.buttonText}
disabled={isWeakPassword(values.passphrase)}
/>
>
{props.buttonText}
</LoadingButton>
{loading && (
<Typography
textAlign="center"

View File

@ -290,7 +290,7 @@ export const SignUp: React.FC<SignUpProps> = ({ router, login, host }) => {
</VerticallyCentered>
<Box mb={4}>
<LoadingButton
size="large"
fullWidth
color="accent"
type="submit"
loading={loading}