fix(client): remove avatarType and OAuth avatar from admin settings
This commit is contained in:
@@ -56,8 +56,6 @@ export function AdminSettingsPage() {
|
|||||||
mode: 'onChange',
|
mode: 'onChange',
|
||||||
})
|
})
|
||||||
|
|
||||||
const hasAvatar = Boolean(user?.avatar)
|
|
||||||
|
|
||||||
const [selectedStyle, setSelectedStyle] = useState(user?.avatarStyle || DEFAULT_STYLE_ID)
|
const [selectedStyle, setSelectedStyle] = useState(user?.avatarStyle || DEFAULT_STYLE_ID)
|
||||||
const [previewSrc, setPreviewSrc] = useState<string | null>(null)
|
const [previewSrc, setPreviewSrc] = useState<string | null>(null)
|
||||||
const [previewStyle, setPreviewStyle] = useState<string>(DEFAULT_STYLE_ID)
|
const [previewStyle, setPreviewStyle] = useState<string>(DEFAULT_STYLE_ID)
|
||||||
@@ -148,7 +146,7 @@ export function AdminSettingsPage() {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Typography variant="caption" color="text.secondary" sx={{ display: 'block', mt: 0.5 }}>
|
<Typography variant="caption" color="text.secondary" sx={{ display: 'block', mt: 0.5 }}>
|
||||||
{hasUnsavedPreview ? 'Предпросмотр' : hasAvatar ? 'Сохранён' : 'Авто'}
|
{hasUnsavedPreview ? 'Предпросмотр' : user.avatar ? 'Сохранён' : 'Авто'}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
{hasUnsavedPreview && (
|
{hasUnsavedPreview && (
|
||||||
|
|||||||
Reference in New Issue
Block a user