@@ -31,6 +58,25 @@ export default function NotificationSearch() {
debounceTime={500}
onSearch={(expr: string) => dispatch(setSearch(expr))}
/>
+
+
{
+ setShowOrder(true)
+ }}
+ selected={showOrder}
+ />
+
+ {
+ dispatch(setOrder(value as NotificationSortingType))
+ setShowOrder(false)
+ }}
+ sortOptions={sortOptions}
+ />
+
+
)
}
diff --git a/src/features/notification/apiSlice.ts b/src/features/notification/apiSlice.ts
index 98e10c870..cced06dd6 100644
--- a/src/features/notification/apiSlice.ts
+++ b/src/features/notification/apiSlice.ts
@@ -27,6 +27,7 @@ import {
type CXNotification,
type CXNotificationMeta,
type NotificationFetchType,
+ NotificationSortingType,
} from './types'
export interface NotificationArgsProps {
@@ -51,7 +52,7 @@ export const apiSlice = createApi({
}),
getNotifications: builder.query