feat: improve error messages for user upload size validation

This commit is contained in:
Kirill
2026-05-15 20:19:00 +05:00
parent d73d88d034
commit dc448d6538
3 changed files with 14 additions and 1 deletions
@@ -128,7 +128,9 @@ export function ReviewDialog({
)}
{uploadError ? (
<Alert severity="error" sx={{ mt: 2 }}>
Не удалось загрузить фото. Разрешены png, jpg, jpeg, webp.
{uploadError instanceof Error
? uploadError.message
: 'Не удалось загрузить фото. Разрешены png, jpg, jpeg, webp.'}
</Alert>
) : null}
{error ? (