-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ft<password-reset> enabling password reset feature
- Loading branch information
Showing
45 changed files
with
1,922 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ dist | |
.env | ||
dist-ssr | ||
*.local | ||
yarn.lock | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React from 'react'; | ||
import { AppDispatch } from '../../redux/store'; | ||
import { clearCredentials } from '../../redux/reducers/authReducer'; | ||
import { useDispatch } from 'react-redux'; | ||
import { clearUser } from '../../redux/reducers/userReducer'; | ||
import { useNavigate } from 'react-router-dom'; | ||
|
||
function DesktopMenu() { | ||
const navigate = useNavigate(); | ||
const dispatch = useDispatch<AppDispatch>(); | ||
|
||
const logoutHandler = () => { | ||
dispatch(clearCredentials()); | ||
dispatch(clearUser()); | ||
navigate('/'); | ||
}; | ||
|
||
return ( | ||
<div className="bg-baseWhite border border-neutral-300 rounded-2 w-48 p-1 text-neutral-600"> | ||
<ul className="flex flex-col "> | ||
<li className="hover:bg-neutral-300 pl-5 py-2 cursor-pointer">WishList</li> | ||
<li className="hover:bg-neutral-300 pl-5 py-2 cursor-pointer">Profile</li> | ||
<li onClick={logoutHandler} className="hover:bg-neutral-300 pl-5 py-2 cursor-pointer"> | ||
Logout | ||
</li> | ||
</ul> | ||
</div> | ||
); | ||
} | ||
|
||
export default DesktopMenu; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import iconXMark from '../../assets/iconoir_xmark-circle (2).svg'; | ||
|
||
function SuspendedAccount() { | ||
return ( | ||
<div className="flex flex-col justify-center items-center min-h-[60vh] bg-background3 text-baseBlack"> | ||
<img src={iconXMark} alt="" className="w-24 pb-7" /> | ||
<p className="text-center text-xl sm:text-2xl font-semibold">Your account has been suspended!</p> | ||
<p className=" text-base sm:text-lg text-center "> | ||
Please contact our support team at{' '} | ||
<a href="mailto:knights@andela.com" className="italic underline text-orange"> | ||
knights@andela.com | ||
</a>{' '} | ||
for more information. | ||
</p> | ||
</div> | ||
); | ||
} | ||
|
||
export default SuspendedAccount; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.