From 23ea0f97947936fb5ea48f0b0f7e010b8e63920b Mon Sep 17 00:00:00 2001 From: Arkadiusz Bachorski <60391032+arkadiuszbachorski@users.noreply.github.com> Date: Tue, 1 Oct 2024 15:41:45 +0200 Subject: [PATCH] Set isRead to default --- .../NotificationsTable/index.tsx | 45 ++++++++++--------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/modules/notifications/NotificationsTable/index.tsx b/modules/notifications/NotificationsTable/index.tsx index 7fa0593a..443d7679 100644 --- a/modules/notifications/NotificationsTable/index.tsx +++ b/modules/notifications/NotificationsTable/index.tsx @@ -41,25 +41,26 @@ interface NotificationsTableProps { export const NotificationsTable = ({ notifications, -}: NotificationsTableProps) => { - return ( - ( -
- - -
- )} - > - {(props) => ( - - {(notification) => } - - )} -
- ) -} +}: NotificationsTableProps) => ( + ( +
+ + +
+ )} + initialState={{ + columnFilters: [{ id: columnIds.isRead, value: false }], + }} + > + {(props) => ( + + {(notification) => } + + )} +
+)