validate otp
This commit is contained in:
@@ -11,7 +11,8 @@ import Image from '../../components/Image';
|
||||
import { LoginEmailForm, LoginPhoneForm } from '../../sections/auth/login';
|
||||
import Logo from '../../components/Logo';
|
||||
// react
|
||||
import { useState } from 'react';
|
||||
import { useState, useEffect } from 'react';
|
||||
import { useLocation } from 'react-router-dom';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
@@ -36,13 +37,20 @@ const ContentStyle = styled(Card)(({ theme }) => ({
|
||||
|
||||
export default function Login() {
|
||||
const { method } = useAuth();
|
||||
const location = useLocation();
|
||||
const [formPhone, setFormPhone] = useState(false);
|
||||
// const { setForm } = location.state;
|
||||
|
||||
const handlerChange = (event: any, setForm: boolean) => {
|
||||
event.preventDefault();
|
||||
setFormPhone(setForm);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
console.log('setForm');
|
||||
// setFormPhone(setForm ? setForm : true);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<Page title="Login">
|
||||
<RootStyle>
|
||||
|
||||
Reference in New Issue
Block a user