feature/IO-3096-GlobalNotifications - add Dayjs, minor packages on backend
This commit is contained in:
@@ -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}
|
||||
</Link>
|
||||
<Text type="secondary">{new Date(notification.created_at).toLocaleString()}</Text>
|
||||
<Text type="secondary">{day(notification.created_at).fromNow()}</Text>
|
||||
</Title>
|
||||
<Text strong={!notification.read}>
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user