Skip to content

Commit

Permalink
chnages
Browse files Browse the repository at this point in the history
  • Loading branch information
btebe committed Apr 4, 2022
1 parent 89e3dbf commit e631105
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/components/signIn/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function Login() {
password: "",
};
const showToggle = () => setShow((prev) => !prev);

//http://localhost:3001/api/auth
const onSubmitForm = async (data) => {
setLoading(true);
Expand Down
15 changes: 7 additions & 8 deletions src/components/verifyEmail/EmailVerify.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,22 @@ function EmailVerify() {
}, [param]);
return (
<div className={styles.page_con}>
{loading && <p className={styles.load}>Loading...</p>}
{!loading && validUrl ? (
<div className={styles.page_con}>
{loading? <p className={styles.load}>Loading...</p>:
validUrl ? (<div className={styles.page_con}>
<h1>Email verified successfully</h1>

<button className={styles.btn} onClick={() => history.push("/login")}>
Login
</button>
</div>
) : (
<>
</div>):(<>
<img src={pageNotFound} className={styles.not_found_svg} />
<h1>
<span>404</span> Not Found
</h1>
</>
)}
</>)

}

</div>
);
}
Expand Down

0 comments on commit e631105

Please sign in to comment.