diff --git a/src/App.tsx b/src/App.tsx index 29c9d8d..521d616 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -254,7 +254,7 @@ interface BoardAppProps { onSignOut: () => void; } -function BoardApp({ identity, onIdentity, onSignOut }: BoardAppProps) { +function BoardApp({ identity, onIdentity, onSignOut }: Readonly) { const ns = identityNamespace(identity); const store = useMemo(() => new LocalStore(ns), [ns]); const remote = useMemo(() => new RemoteStore(), []); diff --git a/src/components/AdrModal.tsx b/src/components/AdrModal.tsx index 491d8c6..fcfaf52 100644 --- a/src/components/AdrModal.tsx +++ b/src/components/AdrModal.tsx @@ -105,7 +105,12 @@ export interface AdrModalProps { * Nothing reaches the board until "Add selected" — the review step is the * whole point of the feature. */ -export function AdrModal({ sources, onSplit, onAdd, onClose }: AdrModalProps) { +export function AdrModal({ + sources, + onSplit, + onAdd, + onClose, +}: Readonly) { const [adr, setAdr] = useState(''); const [url, setURL] = useState(''); const [source, setSource] = useState(sources[0]?.name ?? ''); diff --git a/src/components/AuthReturn.tsx b/src/components/AuthReturn.tsx index f6f5851..77100f7 100644 --- a/src/components/AuthReturn.tsx +++ b/src/components/AuthReturn.tsx @@ -28,7 +28,7 @@ export interface AuthReturnProps { export function AuthReturn({ search = typeof location === 'undefined' ? '' : location.search, hash = typeof location === 'undefined' ? '' : location.hash, -}: AuthReturnProps) { +}: Readonly) { const [stalled, setStalled] = useState(false); const [failed, setFailed] = useState(null); diff --git a/src/components/Board.tsx b/src/components/Board.tsx index 2709f72..dfce7a3 100644 --- a/src/components/Board.tsx +++ b/src/components/Board.tsx @@ -313,7 +313,7 @@ interface LiftState extends LiftPos { /** Id of the description that teaches the keyboard move model. */ const KEYS_HINT_ID = 'kb-card-keys'; -export function BoardView(props: BoardProps) { +export function BoardView(props: Readonly) { const { board, onTick, onEdit, onAdd, showCancelled, onRestore, onPurge } = props; const rootRef = useRef(null); const cloneRef = useRef(null); @@ -736,7 +736,7 @@ function Column({ onCardKey, onRestore, onPurge, -}: ColumnProps) { +}: Readonly) { const slot = placeholder === null ? null : (