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/dialog/OperationDialog.tsx | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

(limited to 'FrontEnd/src/components/dialog/OperationDialog.tsx')

diff --git a/FrontEnd/src/components/dialog/OperationDialog.tsx b/FrontEnd/src/components/dialog/OperationDialog.tsx
index feaf5c79..4541d6f8 100644
--- a/FrontEnd/src/components/dialog/OperationDialog.tsx
+++ b/FrontEnd/src/components/dialog/OperationDialog.tsx
@@ -1,7 +1,7 @@
 import { useState, ReactNode, ComponentProps } from "react";
 import classNames from "classnames";
 
-import { useC, Text, ThemeColor } from "../common";
+import { useC, I18nText, ThemeColor } from "../common";
 import {
   useInputs,
   InputGroup,
@@ -15,8 +15,8 @@ import DialogContainer from "./DialogContainer";
 import "./OperationDialog.css";
 
 interface OperationDialogPromptProps {
-  message?: Text;
-  customMessage?: Text;
+  message?: I18nText;
+  customMessage?: I18nText;
   customMessageNode?: ReactNode;
   className?: string;
 }
@@ -39,12 +39,12 @@ export interface OperationDialogProps<TData> {
   onClose: () => void;
   color?: ThemeColor;
   inputColor?: ThemeColor;
-  title: Text;
-  inputPrompt?: Text;
+  title: I18nText;
+  inputPrompt?: I18nText;
   inputPromptNode?: ReactNode;
-  successPrompt?: (data: TData) => Text;
+  successPrompt?: (data: TData) => I18nText;
   successPromptNode?: (data: TData) => ReactNode;
-  failurePrompt?: (error: unknown) => Text;
+  failurePrompt?: (error: unknown) => I18nText;
   failurePromptNode?: (error: unknown) => ReactNode;
 
   inputs: InputInitializer;
-- 
cgit v1.2.3

