diff options
author | crupest <crupest@outlook.com> | 2023-07-24 21:48:48 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-07-24 21:48:48 +0800 |
commit | 4f8d933994c576dc180fae23a3dca477d2354939 (patch) | |
tree | 654763f143b3508af2d2c263ace6469268107899 /FrontEnd/src/views/register | |
parent | ae48ac24c5533653f1e1f1e6d2a33e0238222297 (diff) | |
download | timeline-4f8d933994c576dc180fae23a3dca477d2354939.tar.gz timeline-4f8d933994c576dc180fae23a3dca477d2354939.tar.bz2 timeline-4f8d933994c576dc180fae23a3dca477d2354939.zip |
...
Diffstat (limited to 'FrontEnd/src/views/register')
-rw-r--r-- | FrontEnd/src/views/register/index.tsx | 9 |
1 files changed, 3 insertions, 6 deletions
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); - } + }, ); } }} |