closes notification menu when see all notifications is clicked #346
@@ -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){
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user