forked from aec-coding-club/AEC-Coding-Club-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Enteremail.jsx
39 lines (35 loc) · 1011 Bytes
/
Enteremail.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import React, { useEffect } from 'react'
import { Link, useNavigate } from 'react-router-dom'
import { IoIosArrowBack } from 'react-icons/io'
import EmailForme from './Components/EmailForme'
import forgotpassword from '../Assets/forgotpassword.svg'
const Enteremail = () => {
let navigate = useNavigate()
async function tokenCheker() {
const authToken = localStorage.getItem('token')
if (authToken) {
navigate('/')
}
}
useEffect(() => {
tokenCheker()
}, [])
return (
<>
<div className='user-login forgot-password-wrapper'>
<div className='back-btn-login' onClick={() => navigate('/signin')}>
<IoIosArrowBack />
<p>Go Back</p>
</div>
<div className='user-img'>
<img
alt=''
src='https://res.cloudinary.com/sahebcloud/image/upload/v1649397165/forgot-password-animate_fyfjlr.svg'
></img>
</div>
<EmailForme />
</div>
</>
)
}
export default Enteremail