mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-30 21:04:59 +00:00
feat(notification): add unread sidebar count badge and fix project scope upload authorization check
This commit is contained in:
@@ -55,6 +55,14 @@ export const NotificationList = () => {
|
||||
[data],
|
||||
)
|
||||
|
||||
useEffect(() => {
|
||||
if (teamId) {
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: ['teams', teamId, 'me'],
|
||||
})
|
||||
}
|
||||
}, [teamId, notifications.length, queryClient])
|
||||
|
||||
const $post = client.api.teams[':teamId'].notifications.read.$post
|
||||
const markReadMutation = useMutation<
|
||||
InferResponseType<typeof $post>,
|
||||
|
||||
Reference in New Issue
Block a user