From 9b871149aca68d0024ff77a83eb42fd7b6d9f7ad Mon Sep 17 00:00:00 2001 From: Dave Richer Date: Fri, 28 Feb 2025 11:13:08 -0500 Subject: [PATCH] feature/IO-3096-GlobalNotifications - add Dayjs, minor packages on backend --- .../notification-center.component.jsx | 3 +- .../notification-center.container.jsx | 16 +- .../src/contexts/SocketIO/socketContext.jsx | 19 +- package-lock.json | 444 +++++++++--------- package.json | 14 +- 5 files changed, 251 insertions(+), 245 deletions(-) diff --git a/client/src/components/notification-center/notification-center.component.jsx b/client/src/components/notification-center/notification-center.component.jsx index e388db84e..a314260fc 100644 --- a/client/src/components/notification-center/notification-center.component.jsx +++ b/client/src/components/notification-center/notification-center.component.jsx @@ -3,6 +3,7 @@ import { Alert, Badge, Button, Checkbox, List, Typography } from "antd"; import { useTranslation } from "react-i18next"; import { Link } from "react-router-dom"; import "./notification-center.styles.scss"; +import day from "../../utils/day.js"; const { Text, Title } = Typography; @@ -49,7 +50,7 @@ const NotificationCenterComponent = ({ > RO #{notification.roNumber} - {new Date(notification.created_at).toLocaleString()} + {day(notification.created_at).fromNow()}