secind commit
This commit is contained in:
parent
23ce2eda41
commit
12a240d808
File diff suppressed because it is too large
Load Diff
|
|
@ -35,9 +35,7 @@
|
|||
"filesize": "^10.1.0",
|
||||
"formik": "^2.4.5",
|
||||
"html-react-parser": "^6.0.1",
|
||||
"install": "^0.13.0",
|
||||
"lodash": "^4.17.21",
|
||||
"npm": "^11.3.0",
|
||||
"pdfjs-dist": "^5.4.54",
|
||||
"react": "^18.2.0",
|
||||
"react-bootstrap": "^2.10.10",
|
||||
|
|
|
|||
|
|
@ -107,5 +107,11 @@ export const notificationTypes = [
|
|||
color: "#32ad7c",
|
||||
bgColor: "#baf6dc",
|
||||
},
|
||||
{
|
||||
type: "overlay_custom",
|
||||
icon: "star2",
|
||||
color: "#ca8a04",
|
||||
bgColor: "#f9edd1",
|
||||
},
|
||||
|
||||
];
|
||||
|
|
|
|||
|
|
@ -240,16 +240,16 @@ function Dashboard() {
|
|||
|
||||
useEffect(() => {
|
||||
if (!currentOverlayNotification?.id) return;
|
||||
// notificationServices
|
||||
// .markReadNotification({ id: currentOverlayNotification.id })
|
||||
// .then((res) => {
|
||||
// if (res.data?.status === "success") {
|
||||
// getNotificationStats();
|
||||
// }
|
||||
// })
|
||||
// .catch((err) =>
|
||||
// console.log("Error marking overlay notification read = ", err)
|
||||
// );
|
||||
notificationServices
|
||||
.markReadNotification({ id: currentOverlayNotification.id })
|
||||
.then((res) => {
|
||||
if (res.data?.status === "success") {
|
||||
getNotificationStats();
|
||||
}
|
||||
})
|
||||
.catch((err) =>
|
||||
console.log("Error marking overlay notification read = ", err)
|
||||
);
|
||||
}, [currentOverlayNotification?.id]);
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue