mirror of
https://github.com/FranP-code/Pomodoro-Timer-with-Clockify-integration.git
synced 2025-10-12 23:52:30 +00:00
Added routing and structure to the login and register
This commit is contained in:
33
src/components/Identify.jsx
Normal file
33
src/components/Identify.jsx
Normal file
@@ -0,0 +1,33 @@
|
||||
import React, {useState} from 'react'
|
||||
import LoginForm from './Identify Childrens/LoginForm'
|
||||
import RegisterForm from './Identify Childrens/RegisterForm'
|
||||
|
||||
|
||||
const Identify = () => {
|
||||
const [act, setAct] = useState('register')
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<div>
|
||||
<nav>
|
||||
<div>
|
||||
<h2>LOGIN</h2>
|
||||
</div>
|
||||
<div>
|
||||
<h2>REGISTER</h2>
|
||||
</div>
|
||||
</nav>
|
||||
<div>
|
||||
{
|
||||
act === 'login' ? <LoginForm /> : null
|
||||
}
|
||||
{
|
||||
act === 'register' ? <RegisterForm /> : null
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Identify
|
||||
Reference in New Issue
Block a user