fix(ux): friendly error UI вместо raw AxiosError

This commit is contained in:
Александр Зимин
2026-05-12 12:41:48 +00:00
parent db0986d235
commit 3984d99004
14 changed files with 274 additions and 57 deletions
@@ -16,6 +16,7 @@ import {
IconButton,
LoadingBlock,
Modal,
QueryErrorState,
SearchInput,
Table,
TableBody,
@@ -629,11 +630,7 @@ function DictionaryDetail() {
)
}
if (detailQuery.error) {
return (
<Alert variant="error" title={t('error.failed')}>
{String(detailQuery.error)}
</Alert>
)
return <QueryErrorState error={detailQuery.error} onRetry={() => detailQuery.refetch()} />
}
return (