chore: fix type errors, move textAlign/fontWeight to sx

This commit is contained in:
Kirill
2026-05-22 13:28:45 +05:00
parent 9696a4dcc3
commit e468625cfc
3 changed files with 15 additions and 8 deletions
+11 -3
View File
@@ -27,6 +27,14 @@
font-display: swap;
}
:root { color-scheme: light; }
html, body, #root { min-height: 100%; }
body { margin: 0; }
:root {
color-scheme: light;
}
html,
body,
#root {
min-height: 100%;
}
body {
margin: 0;
}
+4 -5
View File
@@ -116,8 +116,7 @@ export function AuthPage() {
getApiErrorMessage(requestCode.error) ||
getApiErrorMessage(verifyCode.error)
const passwordError =
isRegister && passwordConfirm && password !== passwordConfirm ? 'Пароли не совпадают' : null
const passwordError = isRegister && passwordConfirm && password !== passwordConfirm ? 'Пароли не совпадают' : null
return (
<Box
@@ -135,11 +134,11 @@ export function AuthPage() {
<BearLogo sx={{ fontSize: 72 }} />
</Box>
<Typography variant="h5" fontWeight={700} textAlign="center" gutterBottom>
<Typography variant="h5" sx={{ fontWeight: 700, textAlign: 'center' }} gutterBottom>
Добро пожаловать в Любимый Креатив
</Typography>
<Typography variant="body2" color="text.secondary" textAlign="center" sx={{ mb: 3 }}>
<Typography variant="body2" color="text.secondary" sx={{ textAlign: 'center', mb: 3 }}>
Войдите или зарегистрируйтесь, чтобы продолжить
</Typography>
@@ -192,7 +191,7 @@ export function AuthPage() {
{tab === 0 && (
<Stack spacing={2}>
<Stack direction="row" justifyContent="center" spacing={3}>
<Stack direction="row" sx={{ justifyContent: 'center' }} spacing={3}>
<Button
variant="text"
size="small"