From 4f8d933994c576dc180fae23a3dca477d2354939 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Mon, 24 Jul 2023 21:48:48 +0800
Subject: ...

---
 FrontEnd/src/views/register/index.tsx | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

(limited to 'FrontEnd/src/views/register/index.tsx')

diff --git a/FrontEnd/src/views/register/index.tsx b/FrontEnd/src/views/register/index.tsx
index c1b95ff7..3ecbca63 100644
--- a/FrontEnd/src/views/register/index.tsx
+++ b/FrontEnd/src/views/register/index.tsx
@@ -7,10 +7,7 @@ import { getHttpTokenClient } from "@/http/token";
 import { userService, useUser } from "@/services/user";
 
 import { LoadingButton } from "../common/button";
-import InputPanel, {
-  hasError,
-  InputPanelError,
-} from "../common/input/InputPanel";
+import { hasError, InputPanelError } from "../common/input/InputGroup";
 
 import "./index.css";
 
@@ -101,7 +98,7 @@ const RegisterPage: React.FC = () => {
           setDirty(newDirty);
           const e = validate(
             [username, password, confirmPassword, registerCode],
-            newDirty
+            newDirty,
           );
           if (hasError(e)) {
             setInputError(e);
@@ -128,7 +125,7 @@ const RegisterPage: React.FC = () => {
                     setResultError("error.network");
                   }
                   setProcess(false);
-                }
+                },
               );
           }
         }}
-- 
cgit v1.2.3

