aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views/common/input
diff options
context:
space:
mode:
Diffstat (limited to 'FrontEnd/src/views/common/input')
-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;
}