Skip to content

Commit

Permalink
Riyad/notification implement (#257)
Browse files Browse the repository at this point in the history
* implementing notification

* notification is working fine

* minor fix

* add notifications

* notification fix

* update ui of notification modal

* approve milestone if voted for brief

* updating the notificcations

* 1. update the ui
2. update notifications

* minor fix

* fix again

* fix string issue

* 1. fix milestone completed
2. fix approver notifications
3. add loading to notifications
4. close on click on any notifications

* fix the small bug

* push again

* add key

* add  new Navbar

* fix bugs

* hiding icons

* working on optimizing notifications

* fix all the conflicts

* 1. remove unsed variable

* 1. remove used codes

---------

Co-authored-by: ssani7 <[email protected]>
  • Loading branch information
shakilahmedriyad and ssani7 authored Nov 13, 2023
1 parent f852a17 commit 2de4d4a
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/components/Navbar/NotificationIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,9 @@ export default function NotificationIcon() {
const [lastNotification, setLastNotification] = useState<
string | undefined
>();
const [limit, setLimit] = useState(10);
const [notifications, setNotifications] = useState<any>([]);


const getNotificationList = ()=>{

}


useEffect(() => {




const notifications = async () => {
const result = await getNotification();
setNotificationCount(result.new_notification.length);
Expand Down Expand Up @@ -57,6 +46,7 @@ export default function NotificationIcon() {
setAnchorEl(null);
setModal(false);
};


return (
<div>
Expand Down

0 comments on commit 2de4d4a

Please sign in to comment.