Compare commits

..

No commits in common. "eecbb3c948b528e32005490840095e9cb49b156b" and "fa58c8d28247703eaacaf21a40987f8c0f746be1" have entirely different histories.

4 changed files with 4681 additions and 3480 deletions

8133
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -35,7 +35,9 @@
"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,11 +107,5 @@ export const notificationTypes = [
color: "#32ad7c",
bgColor: "#baf6dc",
},
{
type: "overlay_custom",
icon: "star2",
color: "#ca8a04",
bgColor: "#f9edd1",
},
];

View File

@ -241,16 +241,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(() => {