🐛 Close notifications modal on read all

This commit is contained in:
Maxime Lalo 2023-10-09 15:39:23 +02:00
parent 3e2ca15def
commit 4dcc9d1735

View File

@ -23,6 +23,7 @@ export default class NotificationModal extends React.Component<IProps, IState> {
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<IProps, IState> {
private readAllNotifications() {
Toasts.getInstance().closeAll();
this.props.closeModal();
}
private handleToastChange(toastList: IToast[] | null) {