diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index edbdf92..f87ddda 100755 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -40,7 +40,7 @@ import DevThrow from './components/DevThrow'; const { Header, Content, Footer } = Layout; const { Title } = Typography; -interface CatalogueProps { +type CatalogueProps = Readonly<{ failed: boolean; loading: boolean; items: Item[]; @@ -50,7 +50,7 @@ interface CatalogueProps { onSignIn: () => void; onClearFilters: () => void; onChanged: () => void; -} +}>; // The body of the catalogue: an outage, a sign-in prompt, an empty state, or // the grid. Extracted from App so the four cases read as early returns rather diff --git a/frontend/src/admin/CategoryTreeSelect.tsx b/frontend/src/admin/CategoryTreeSelect.tsx index 59a716c..0586fc0 100644 --- a/frontend/src/admin/CategoryTreeSelect.tsx +++ b/frontend/src/admin/CategoryTreeSelect.tsx @@ -21,7 +21,7 @@ function toTreeData(nodes: CategoryNode[]): CategoryTreeOption[] { })); } -interface Props { +type Props = Readonly<{ // Supplied by antd's Form.Item. `id` has to be forwarded or the field loses // its association with the rendered