diff options
author | crupest <crupest@outlook.com> | 2023-07-24 00:31:02 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-07-24 00:31:02 +0800 |
commit | c7934c59cb17a4266ea882cdb40be79f22043d10 (patch) | |
tree | ff368fe5611014cd20db5a1f53d4dcbd5fdabf9f /FrontEnd/src/views/common/input/InputPanel.tsx | |
parent | ae1b296b5e967d1e329f5a1e6165ca0f05dce0cb (diff) | |
download | timeline-c7934c59cb17a4266ea882cdb40be79f22043d10.tar.gz timeline-c7934c59cb17a4266ea882cdb40be79f22043d10.tar.bz2 timeline-c7934c59cb17a4266ea882cdb40be79f22043d10.zip |
...
Diffstat (limited to 'FrontEnd/src/views/common/input/InputPanel.tsx')
-rw-r--r-- | FrontEnd/src/views/common/input/InputPanel.tsx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/FrontEnd/src/views/common/input/InputPanel.tsx b/FrontEnd/src/views/common/input/InputPanel.tsx index 234ed267..27937a05 100644 --- a/FrontEnd/src/views/common/input/InputPanel.tsx +++ b/FrontEnd/src/views/common/input/InputPanel.tsx @@ -1,7 +1,6 @@ import * as React from "react"; import classNames from "classnames"; import { useTranslation } from "react-i18next"; -import { TwitterPicker } from "react-color"; import { convertI18nText, I18nText } from "@/common"; @@ -89,14 +88,14 @@ export interface InputPanelProps<InputList extends readonly Input[]> { values: MapInputListToValueTypeList<InputList>; onChange: ( values: MapInputListToValueTypeList<InputList>, - index: number + index: number, ) => void; error?: InputPanelError; disable?: boolean; } const InputPanel = <InputList extends readonly Input[]>( - props: InputPanelProps<InputList> + props: InputPanelProps<InputList>, ): React.ReactElement => { const { values, onChange, scheme, error, disable } = props; @@ -108,7 +107,7 @@ const InputPanel = <InputList extends readonly Input[]>( newValues[index] = newValue; onChange( newValues as unknown as MapInputListToValueTypeList<InputList>, - index + index, ); }; |