From 538d6830a0022b49b99695095d85e567b0c86e71 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Sun, 30 Jul 2023 23:47:53 +0800
Subject: ...

---
 FrontEnd/src/views/common/dialog/OperationDialog.tsx | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

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

diff --git a/FrontEnd/src/views/common/dialog/OperationDialog.tsx b/FrontEnd/src/views/common/dialog/OperationDialog.tsx
index da1ff0e0..de92e541 100644
--- a/FrontEnd/src/views/common/dialog/OperationDialog.tsx
+++ b/FrontEnd/src/views/common/dialog/OperationDialog.tsx
@@ -43,7 +43,7 @@ export interface OperationDialogProps<TData> {
   color?: ThemeColor;
   inputColor?: ThemeColor;
   title: Text;
-  inputPrompt?: Text;
+  inputPrompt?: () => ReactNode;
   successPrompt?: (data: TData) => ReactNode;
   failurePrompt?: (error: unknown) => ReactNode;
 
@@ -68,8 +68,6 @@ function OperationDialog<TData>(props: OperationDialogProps<TData>) {
     onSuccessAndClose,
   } = props;
 
-  const c = useC();
-
   type Step =
     | { type: "input" }
     | { type: "process" }
@@ -130,7 +128,7 @@ function OperationDialog<TData>(props: OperationDialogProps<TData>) {
 
     body = (
       <div>
-        <OperationDialogPrompt customMessage={c(inputPrompt)} />
+        <OperationDialogPrompt customMessage={inputPrompt?.()} />
         <InputGroup
           containerClassName="cru-operation-dialog-input-group"
           color={inputColor ?? "primary"}
-- 
cgit v1.2.3

