import React from "react" ; import { useLocalStorageState } from "ahooks" ; import LoginPassword from "./components/LoginPassword" ; import LoginMessage from "./components/LoginMessage" ; import styles from "./index.module.less" ; const LoginPage = ( ) => { const [ loginWay , setLoginWay ] = useLocalStorageState ( "login__Login__way" , "" ) ; const [ way , setWay ] = React . useState < string > ( loginWay ) ; param name function updateWay ( name ) { setWay ( name ) ; setLoginWay ( name ) ; } return ( < div className = { styles . loginContainer } > < div className = { styles . loginLogo } /> < div className = { styles . loginForm } > { } { } { } < LoginPassword updateWay = { updateWay } /> { } < /div> < /div>); } ; export default LoginPage ;