From 4dcc9d173548fef46ff3c849e0aeb52f8d04f53e Mon Sep 17 00:00:00 2001 From: Maxime Lalo Date: Mon, 9 Oct 2023 15:39:23 +0200 Subject: [PATCH] :bug: Close notifications modal on read all --- .../Header/Notifications/NotificationModal/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/front/Components/DesignSystem/Header/Notifications/NotificationModal/index.tsx b/src/front/Components/DesignSystem/Header/Notifications/NotificationModal/index.tsx index 0d8d8ba6..2ea50c06 100644 --- a/src/front/Components/DesignSystem/Header/Notifications/NotificationModal/index.tsx +++ b/src/front/Components/DesignSystem/Header/Notifications/NotificationModal/index.tsx @@ -23,6 +23,7 @@ export default class NotificationModal extends React.Component { toastList: Toasts.getInstance().toasts, }; this.handleToastChange = this.handleToastChange.bind(this); + this.readAllNotifications = this.readAllNotifications.bind(this); } public override render(): JSX.Element | null { @@ -68,6 +69,7 @@ export default class NotificationModal extends React.Component { private readAllNotifications() { Toasts.getInstance().closeAll(); + this.props.closeModal(); } private handleToastChange(toastList: IToast[] | null) {