style: Reformat code

This commit is contained in:
Michal Šmahel committed 2025-06-09 21:54:48 +02:00
1 parent 8c9084cc7a
commit 89bc2a9293
9 files changed
+36 -26

No files matched your search

+4 -1
View File
@@ -75,7 +75,10 @@ const ForgotPassword = () => {
const { value } = event.target;
setForm({ email: value });
const { error } = newOrChangedCredentials.validate({ email: value }, { abortEarly: false });
const { error } = newOrChangedCredentials.validate(
{ email: value },
{ abortEarly: false }
);
if (error) setErrors({ email: error.details[0].message });
else delete errors.email;
@@ -100,7 +100,9 @@ const NewPasswordConfirmed = () => {
</IconBox>
</Stack>
<Typography component="h1">{t("auth.forgotPassword.heading")}</Typography>
<Typography mb={theme.spacing(2)}>{t("auth.forgotPassword.subheadings.stepFour")}</Typography>
<Typography mb={theme.spacing(2)}>
{t("auth.forgotPassword.subheadings.stepFour")}
</Typography>
</Box>
<Button
variant="contained"
@@ -77,9 +77,11 @@ function StepThree({ isSuperAdmin, onSubmit, onBack }) {
value={form.password}
onChange={handleChange}
error={errors.password && errors.password[0] ? true : false}
helperText={errors.password === "auth.common.inputs.password.errors.empty"
? t(errors.password)
: ""} // Other errors are related to required password conditions and are visualized below the input
helperText={
errors.password === "auth.common.inputs.password.errors.empty"
? t(errors.password)
: ""
} // Other errors are related to required password conditions and are visualized below the input
ref={inputRef}
/>
<TextInput
+11 -5
View File
@@ -171,9 +171,11 @@ const SetNewPassword = () => {
value={form.password}
onChange={handleChange}
error={errors.password ? true : false}
helperText={errors.password === "auth.common.inputs.password.errors.empty"
? t(errors.password)
: ""} // Other errors are related to required password conditions and are visualized below the input
helperText={
errors.password === "auth.common.inputs.password.errors.empty"
? t(errors.password)
: ""
} // Other errors are related to required password conditions and are visualized below the input
endAdornment={<PasswordEndAdornment />}
/>
</Box>
@@ -217,12 +219,16 @@ const SetNewPassword = () => {
variant={feedbacks.number}
/>
<Check
noHighlightText={t("auth.common.inputs.password.rules.uppercase.beginning")}
noHighlightText={t(
"auth.common.inputs.password.rules.uppercase.beginning"
)}
text={t("auth.common.inputs.password.rules.uppercase.highlighted")}
variant={feedbacks.uppercase}
/>
<Check
noHighlightText={t("auth.common.inputs.password.rules.lowercase.beginning")}
noHighlightText={t(
"auth.common.inputs.password.rules.lowercase.beginning"
)}
text={t("auth.common.inputs.password.rules.lowercase.highlighted")}
variant={feedbacks.lowercase}
/>
+3 -1
View File
@@ -20,7 +20,9 @@ const SettingsAbout = () => {
</Typography>
</Box>
<Box>
<Typography component="h2">{t("common.appName")} {2.1}</Typography>
<Typography component="h2">
{t("common.appName")} {2.1}
</Typography>
<Typography sx={{ mt: theme.spacing(2), mb: theme.spacing(6), opacity: 0.6 }}>
{t("settingsDevelopedBy")}
</Typography>