From a87a1fad8f56e50b1bacb2b8c174ed3e6a831a0e Mon Sep 17 00:00:00 2001 From: LASER-Yi Date: Sat, 11 Dec 2021 00:11:01 +0800 Subject: [PATCH] no log: Fix compile errors --- frontend/src/components/inputs/Chips.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/inputs/Chips.tsx b/frontend/src/components/inputs/Chips.tsx index 012e41c61..1be0050a0 100644 --- a/frontend/src/components/inputs/Chips.tsx +++ b/frontend/src/components/inputs/Chips.tsx @@ -14,8 +14,8 @@ const SplitKeys = ["Tab", "Enter", " ", ",", ";"]; export interface ChipsProps { disabled?: boolean; - defaultValue?: string[]; - value?: string[]; + defaultValue?: readonly string[]; + value?: readonly string[]; onChange?: (v: string[]) => void; } @@ -25,7 +25,7 @@ export const Chips: FunctionComponent = ({ disabled, onChange, }) => { - const [chips, setChips] = useState(() => { + const [chips, setChips] = useState>(() => { if (value) { return value; }