aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views/common/input/InputPanel.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-04-28 23:03:56 +0800
committercrupest <crupest@outlook.com>2022-04-28 23:03:56 +0800
commitb46c397989df15149803cc1607448dd83c8781a7 (patch)
treeb62672f9f6832fe65334f343c4a1a21f5e64865e /FrontEnd/src/views/common/input/InputPanel.tsx
parent1244bed985c00f1ecb08e9077b235ec97dfbdb9e (diff)
downloadtimeline-b46c397989df15149803cc1607448dd83c8781a7.tar.gz
timeline-b46c397989df15149803cc1607448dd83c8781a7.tar.bz2
timeline-b46c397989df15149803cc1607448dd83c8781a7.zip
...
Diffstat (limited to 'FrontEnd/src/views/common/input/InputPanel.tsx')
-rw-r--r--FrontEnd/src/views/common/input/InputPanel.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/FrontEnd/src/views/common/input/InputPanel.tsx b/FrontEnd/src/views/common/input/InputPanel.tsx
index 1270cc53..704330eb 100644
--- a/FrontEnd/src/views/common/input/InputPanel.tsx
+++ b/FrontEnd/src/views/common/input/InputPanel.tsx
@@ -72,7 +72,9 @@ type MapInputListToValueTypeList<Tuple extends readonly Input[]> = {
[Index in keyof Tuple]: MapInputToValueType<Tuple[Index]>;
} & { length: Tuple["length"] };
-export type OperationInputError = (I18nText | null | undefined)[];
+export type InputPanelError = {
+ [index: number]: I18nText | null | undefined;
+};
export interface InputPanelProps<InputList extends readonly Input[]> {
scheme: InputList;
@@ -81,7 +83,7 @@ export interface InputPanelProps<InputList extends readonly Input[]> {
values: MapInputListToValueTypeList<InputList>,
index: number
) => void;
- error?: OperationInputError;
+ error?: InputPanelError;
disable?: boolean;
}