chore: fix type errors, move textAlign/fontWeight to sx
This commit is contained in:
@@ -27,6 +27,14 @@
|
|||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
:root { color-scheme: light; }
|
:root {
|
||||||
html, body, #root { min-height: 100%; }
|
color-scheme: light;
|
||||||
body { margin: 0; }
|
}
|
||||||
|
html,
|
||||||
|
body,
|
||||||
|
#root {
|
||||||
|
min-height: 100%;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|||||||
@@ -116,8 +116,7 @@ export function AuthPage() {
|
|||||||
getApiErrorMessage(requestCode.error) ||
|
getApiErrorMessage(requestCode.error) ||
|
||||||
getApiErrorMessage(verifyCode.error)
|
getApiErrorMessage(verifyCode.error)
|
||||||
|
|
||||||
const passwordError =
|
const passwordError = isRegister && passwordConfirm && password !== passwordConfirm ? 'Пароли не совпадают' : null
|
||||||
isRegister && passwordConfirm && password !== passwordConfirm ? 'Пароли не совпадают' : null
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
@@ -135,11 +134,11 @@ export function AuthPage() {
|
|||||||
<BearLogo sx={{ fontSize: 72 }} />
|
<BearLogo sx={{ fontSize: 72 }} />
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Typography variant="h5" fontWeight={700} textAlign="center" gutterBottom>
|
<Typography variant="h5" sx={{ fontWeight: 700, textAlign: 'center' }} gutterBottom>
|
||||||
Добро пожаловать в Любимый Креатив
|
Добро пожаловать в Любимый Креатив
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Typography variant="body2" color="text.secondary" textAlign="center" sx={{ mb: 3 }}>
|
<Typography variant="body2" color="text.secondary" sx={{ textAlign: 'center', mb: 3 }}>
|
||||||
Войдите или зарегистрируйтесь, чтобы продолжить
|
Войдите или зарегистрируйтесь, чтобы продолжить
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
@@ -192,7 +191,7 @@ export function AuthPage() {
|
|||||||
|
|
||||||
{tab === 0 && (
|
{tab === 0 && (
|
||||||
<Stack spacing={2}>
|
<Stack spacing={2}>
|
||||||
<Stack direction="row" justifyContent="center" spacing={3}>
|
<Stack direction="row" sx={{ justifyContent: 'center' }} spacing={3}>
|
||||||
<Button
|
<Button
|
||||||
variant="text"
|
variant="text"
|
||||||
size="small"
|
size="small"
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user