|
13 | 13 | import { useNavigate } from "react-router"; |
14 | 14 | import Button from '@mui/material/Button'; |
15 | 15 | import * as React from 'react'; |
| 16 | +import {useState} from 'react'; |
16 | 17 | import GlobalState from "~/GlobalState"; |
17 | 18 | import styles from './login.module.css'; |
18 | 19 | import { useAtom } from "jotai"; |
@@ -55,11 +56,11 @@ export function Login() { |
55 | 56 | const [globalUserDataState,setGlobalUserDataState] = useAtom(GlobalState.userDataState); |
56 | 57 | const [globalWebWorkerRefState, setGlobalWebWorkerRefState] = useAtom(GlobalState.webWorkerRefState); |
57 | 58 | const [globalLoginModal, setGlobalLoginModal] = useAtom(GlobalState.loginModalState); |
58 | | - const [userName, setUserName] = React.useState(''); |
59 | | - const [password1, setPassword1] = React.useState(''); |
60 | | - const [password2, setPassword2] = React.useState(''); |
61 | | - const [responseMsg, setResponseMsg] = React.useState(''); |
62 | | - const [activeTab, setActiveTab] = React.useState(0); |
| 59 | + const [userName, setUserName] = useState(''); |
| 60 | + const [password1, setPassword1] = useState(''); |
| 61 | + const [password2, setPassword2] = useState(''); |
| 62 | + const [responseMsg, setResponseMsg] = useState(''); |
| 63 | + const [activeTab, setActiveTab] = useState(0); |
63 | 64 |
|
64 | 65 | const navToApp = () => { |
65 | 66 | navigate("/app/app"); |
|
0 commit comments