fix(ux): friendly error UI вместо raw AxiosError
This commit is contained in:
@@ -21,6 +21,7 @@ import {
|
||||
Tabs,
|
||||
TextArea,
|
||||
TextInput,
|
||||
QueryErrorState,
|
||||
} from '@/ui'
|
||||
import { CheckCircleIcon, XCircleIcon } from '@phosphor-icons/react'
|
||||
import { useDraft, useLiveRecord, useReviewQueue, useSchemaReviewQueue } from '@/api/queries'
|
||||
@@ -204,9 +205,7 @@ function ReviewsPage() {
|
||||
)}
|
||||
|
||||
{activeTab === 'records' && queue.error && (
|
||||
<Alert variant="error" title={t('error.failed')}>
|
||||
{String(queue.error)}
|
||||
</Alert>
|
||||
<QueryErrorState error={queue.error} onRetry={() => queue.refetch()} />
|
||||
)}
|
||||
|
||||
{activeTab === 'records' && bulkResult && (
|
||||
|
||||
Reference in New Issue
Block a user