CFE-5 fixed bug in datatable

This commit is contained in:
AmirHossein Mahmoodi
2023-10-21 15:51:57 +03:30
parent 74e9c53baf
commit 416fffd93a
18 changed files with 42 additions and 50 deletions

View File

@@ -14,10 +14,9 @@ const useNotification = () => {
};
const {data, mutate} = useSWR(GET_SIDEBAR_NOTIFICATION, fetcher)
const notification_count = data
//swr config
// render data
return {notification_count, update_notification: mutate}
return {notification_count: data, update_notification: mutate}
}
export default useNotification