From 8aec7dd21512cc987b6e05d3fd4483811788fc17 Mon Sep 17 00:00:00 2001 From: Vins Date: Tue, 16 Jul 2024 16:04:09 +0200 Subject: [PATCH] Notifications --- src/front/Assets/Icons/notif-empty.svg | 3 +++ .../Notifications/NotificationModal/classes.module.scss | 8 +++++++- .../Header/Notifications/NotificationModal/index.tsx | 6 ++++-- 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 src/front/Assets/Icons/notif-empty.svg diff --git a/src/front/Assets/Icons/notif-empty.svg b/src/front/Assets/Icons/notif-empty.svg new file mode 100644 index 00000000..ad6a4f2f --- /dev/null +++ b/src/front/Assets/Icons/notif-empty.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/front/Components/DesignSystem/Header/Notifications/NotificationModal/classes.module.scss b/src/front/Components/DesignSystem/Header/Notifications/NotificationModal/classes.module.scss index d3421913..f2c81a9c 100644 --- a/src/front/Components/DesignSystem/Header/Notifications/NotificationModal/classes.module.scss +++ b/src/front/Components/DesignSystem/Header/Notifications/NotificationModal/classes.module.scss @@ -47,8 +47,14 @@ overflow-y: auto; .missing-notification { - padding: 56px 0; + padding: var(--spacing-3); text-align: center; + border-radius: var(--radius-md); + background-color: var(--color-primary-50); + .notif-icon { + cursor: pointer; + margin-bottom: var(--radius-xl); + } } } diff --git a/src/front/Components/DesignSystem/Header/Notifications/NotificationModal/index.tsx b/src/front/Components/DesignSystem/Header/Notifications/NotificationModal/index.tsx index 456a46c3..82b8a5f2 100644 --- a/src/front/Components/DesignSystem/Header/Notifications/NotificationModal/index.tsx +++ b/src/front/Components/DesignSystem/Header/Notifications/NotificationModal/index.tsx @@ -6,6 +6,7 @@ import Image from "next/image"; import ToastHandler from "@Front/Components/DesignSystem/Toasts/ToastsHandler"; import Toasts, { IToast } from "@Front/Stores/Toasts"; import Check from "@Front/Components/Elements/Icons/Check"; +import NotifEmptyIcon from "@Assets/Icons/notif-empty.svg"; type IProps = { isOpen: boolean; @@ -40,7 +41,7 @@ export default class NotificationModal extends React.Component {
- + Tout marquer comme lu @@ -49,7 +50,8 @@ export default class NotificationModal extends React.Component { <> {!this.state.toastList || this.state.toastList.length === 0 ? (
- + Notif Empty + Vous n'avez pas de notifications.