Merge pull request #24756 from drodil/notification_filter

fix: show all notifications by default in notifications page
This commit is contained in:
Fredrik Adelöw
2024-05-14 09:07:19 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-notifications': patch
---
Show all notifications by default to match the sidebar item status
@@ -71,7 +71,7 @@ export const NotificationsPage = (props?: NotificationsPageProps) => {
const [pageNumber, setPageNumber] = React.useState(0);
const [pageSize, setPageSize] = React.useState(5);
const [containsText, setContainsText] = React.useState<string>();
const [createdAfter, setCreatedAfter] = React.useState<string>('lastWeek');
const [createdAfter, setCreatedAfter] = React.useState<string>('all');
const [sorting, setSorting] = React.useState<SortBy>(
SortByOptions.newest.sortBy,
);