secind commit

This commit is contained in:
Amey Bhagwat 2026-05-08 16:57:09 +05:30
parent 23ce2eda41
commit 12a240d808
4 changed files with 3487 additions and 4688 deletions

8147
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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",

View File

@ -107,5 +107,11 @@ export const notificationTypes = [
color: "#32ad7c",
bgColor: "#baf6dc",
},
{
type: "overlay_custom",
icon: "star2",
color: "#ca8a04",
bgColor: "#f9edd1",
},
];

View File

@ -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(() => {