diff --git a/eslint.config.js b/eslint.config.js index ccd8c540..d0770573 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -99,7 +99,7 @@ export default [ allowImportNames: ['useFilter', 'useDragAndDrop', 'isTextDropItem', 'I18nProvider', 'RouterProvider'], message: `A React Aria component ${kit}` }, - {name: 'react-aria', allowTypeImports: true, allowImportNames: ['VisuallyHidden'], message: `A React Aria primitive ${kit}`} + {name: 'react-aria', allowTypeImports: true, message: `A React Aria primitive ${kit}`} ], patterns: [ {group: ['react-aria/private/**'], message: 'Private React Aria paths break on upgrade.'}, diff --git a/src/features/overview/Overview.tsx b/src/features/overview/Overview.tsx index 456b9c0d..b986ea7f 100644 --- a/src/features/overview/Overview.tsx +++ b/src/features/overview/Overview.tsx @@ -1,7 +1,22 @@ -import {VisuallyHidden} from 'react-aria'; import {cardHeadings, useOverview} from './useOverview'; import {useT} from '../../i18n'; -import {ActionGroup, Badge, Button, Card, Bar, DataTable, Kv, Light, Link, PopoverDialog, TextTooltip, ErrorMessage, Loading, Empty} from '../../ui/ui'; +import { + ActionGroup, + Badge, + Button, + Card, + Bar, + DataTable, + Kv, + Light, + Link, + PopoverDialog, + TextTooltip, + ErrorMessage, + Loading, + Empty, + VisuallyHidden +} from '../../ui/ui'; import Download from '../../ui/icons/Download'; import InfoCircle from '../../ui/icons/InfoCircle'; import {tableLayout} from '../../ui/Table'; @@ -64,6 +79,7 @@ const attachmentsFloor = 2 + tableLayout.headingHeight + 2 * tableLayout.rowHeig export function Overview({query}: PageProps) { const t = useT(); const vm = useOverview(query); + const status = {vm.status.text}; return (
@@ -71,10 +87,10 @@ export function Overview({query}: PageProps) {
{vm.status.href ? ( - {vm.status.text} + {status} ) : ( - {vm.status.text} + status )} {vm.reload && ( diff --git a/src/shell/RefusalWait.tsx b/src/shell/RefusalWait.tsx index 8c5403ee..f78df01d 100644 --- a/src/shell/RefusalWait.tsx +++ b/src/shell/RefusalWait.tsx @@ -1,7 +1,6 @@ import {useEffect, useState, useSyncExternalStore} from 'react'; -import {VisuallyHidden} from 'react-aria'; import {useT} from '../i18n'; -import {InlineAlert} from '../ui/ui'; +import {InlineAlert, VisuallyHidden} from '../ui/ui'; import {currentRefusal, subscribeRefusal, type Refusal} from '../api/refusal'; // A request the backend asked to wait on: why, and a countdown to the automatic retry. diff --git a/src/ui/ui.tsx b/src/ui/ui.tsx index 25998fb0..3bc22949 100644 --- a/src/ui/ui.tsx +++ b/src/ui/ui.tsx @@ -29,3 +29,4 @@ export {ActionBar} from './ActionBar'; export {ActionGroup, type Action} from './ActionGroup'; export {Card, cardClass} from './Card'; export {Divider} from './Divider'; +export {VisuallyHidden} from 'react-aria';