chore: fix type errors, move textAlign/fontWeight to sx
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user