closes notification menu when see all notifications is clicked #346

Merged
ameye merged 1 commits from notification-menu-close into master 2023-07-23 10:20:40 +00:00
2 changed files with 5 additions and 5 deletions
-1
View File
@@ -35,7 +35,6 @@ export default function Notification() {
const indexOfLastItem = Number(indexOfFirstItem) + Number(process.env.REACT_APP_ITEM_PER_PAGE);
const currentNotifications = notificationData?.slice(indexOfFirstItem, indexOfLastItem);
console.log('TESTING', currentNotifications)
const filterHandler = (value) => {
setValue(value);
switch(value){
+5 -4
View File
@@ -315,16 +315,17 @@ export default function Header({ logoutModalHandler, sidebarHandler }) {
</ul>
<div className="add-money-btn flex justify-center items-center">
{/* <Link
<Link
to="/notification"
className="text-purple text-sm font-medium"
onClick={handlerNotification}
>
See all Notification
</Link> */}
<button className="text-purple text-sm font-medium" onClick={()=>{
</Link>
{/* <button className="text-purple text-sm font-medium" onClick={()=>{
handlerNotification()
navigate('/notification', {replace: true})
}}>See all Notification</button>
}}>See all Notification</button> */}
</div>
</div>
</div>