mirror of
https://github.com/ente-io/ente.git
synced 2025-07-29 05:12:39 +00:00
Switch
This commit is contained in:
parent
8ece709661
commit
8b64c6d2bc
@ -1,6 +1,6 @@
|
|||||||
import { isWeakPassword } from "@/accounts/utils";
|
import { isWeakPassword } from "@/accounts/utils";
|
||||||
|
import { LoadingButton } from "@/base/components/mui/LoadingButton";
|
||||||
import ShowHidePassword from "@ente/shared/components/Form/ShowHidePassword";
|
import ShowHidePassword from "@ente/shared/components/Form/ShowHidePassword";
|
||||||
import SubmitButton from "@ente/shared/components/SubmitButton";
|
|
||||||
import { Box, Input, TextField, Typography } from "@mui/material";
|
import { Box, Input, TextField, Typography } from "@mui/material";
|
||||||
import { Formik } from "formik";
|
import { Formik } from "formik";
|
||||||
import { t } from "i18next";
|
import { t } from "i18next";
|
||||||
@ -137,12 +137,15 @@ function SetPasswordForm(props: SetPasswordFormProps) {
|
|||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Box my={4}>
|
<Box my={4}>
|
||||||
<SubmitButton
|
<LoadingButton
|
||||||
sx={{ my: 0 }}
|
fullWidth
|
||||||
|
color="accent"
|
||||||
|
type="submit"
|
||||||
loading={loading}
|
loading={loading}
|
||||||
buttonText={props.buttonText}
|
|
||||||
disabled={isWeakPassword(values.passphrase)}
|
disabled={isWeakPassword(values.passphrase)}
|
||||||
/>
|
>
|
||||||
|
{props.buttonText}
|
||||||
|
</LoadingButton>
|
||||||
{loading && (
|
{loading && (
|
||||||
<Typography
|
<Typography
|
||||||
textAlign="center"
|
textAlign="center"
|
||||||
|
@ -290,7 +290,7 @@ export const SignUp: React.FC<SignUpProps> = ({ router, login, host }) => {
|
|||||||
</VerticallyCentered>
|
</VerticallyCentered>
|
||||||
<Box mb={4}>
|
<Box mb={4}>
|
||||||
<LoadingButton
|
<LoadingButton
|
||||||
size="large"
|
fullWidth
|
||||||
color="accent"
|
color="accent"
|
||||||
type="submit"
|
type="submit"
|
||||||
loading={loading}
|
loading={loading}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user