From d477c7270c90b190ed82b13f48f39a05d83503d2 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Thu, 21 Sep 2023 23:49:12 +0800
Subject: Fix #1394.

---
 FrontEnd/src/components/input/InputGroup.tsx | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

(limited to 'FrontEnd/src/components/input/InputGroup.tsx')

diff --git a/FrontEnd/src/components/input/InputGroup.tsx b/FrontEnd/src/components/input/InputGroup.tsx
index 47a43b38..be6cd577 100644
--- a/FrontEnd/src/components/input/InputGroup.tsx
+++ b/FrontEnd/src/components/input/InputGroup.tsx
@@ -26,16 +26,16 @@
 import { useState, Ref, useId } from "react";
 import classNames from "classnames";
 
-import { useC, Text, ThemeColor } from "../common";
+import { useC, I18nText, ThemeColor } from "../common";
 
 import "./InputGroup.css";
 
 export interface InputBase {
   key: string;
-  label: Text;
-  helper?: Text;
+  label: I18nText;
+  helper?: I18nText;
   disabled?: boolean;
-  error?: Text;
+  error?: I18nText;
 }
 
 export interface TextInput extends InputBase {
@@ -51,7 +51,7 @@ export interface BoolInput extends InputBase {
 
 export interface SelectInputOption {
   value: string;
-  label: Text;
+  label: I18nText;
   icon?: string;
 }
 
@@ -66,14 +66,14 @@ export type Input = TextInput | BoolInput | SelectInput;
 export type InputValue = Input["value"];
 
 export type InputValueDict = Record<string, InputValue>;
-export type InputErrorDict = Record<string, Text>;
+export type InputErrorDict = Record<string, I18nText>;
 export type InputDisabledDict = Record<string, boolean>;
 export type InputDirtyDict = Record<string, boolean>;
 // use never so you don't have to cast everywhere
 export type InputConfirmValueDict = Record<string, never>;
 
 export type GeneralInputErrorDict = {
-  [key: string]: Text | null | undefined;
+  [key: string]: I18nText | null | undefined;
 };
 
 type MakeInputInfo<I extends Input> = Omit<I, "value" | "error" | "disabled">;
-- 
cgit v1.2.3

