diff --git a/client/src/components/Header/NotificationsStep.jsx b/client/src/components/Header/NotificationsStep.jsx index 5e06e83e..b533045c 100755 --- a/client/src/components/Header/NotificationsStep.jsx +++ b/client/src/components/Header/NotificationsStep.jsx @@ -22,6 +22,12 @@ const NotificationsStep = React.memo(({ items, onDelete, onClose }) => { [onDelete], ); + const handleDeleteAll = useCallback(() => { + items.forEach((item) => { + onDelete(item.id); + }); + }, [items, onDelete]); + const renderItemContent = useCallback( ({ activity, card }) => { switch (activity.type) { @@ -85,6 +91,15 @@ const NotificationsStep = React.memo(({ items, onDelete, onClose }) => { {items.length > 0 ? (
+ {items.length > 1 && ( +