mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-27 09:46:25 +02:00
chore: ran frontend and backend linting
This commit is contained in:
parent
ab63b23f0a
commit
b9dc785a1c
9 changed files with 52 additions and 50 deletions
|
|
@ -14,15 +14,15 @@ import { useParams } from "next/navigation";
|
|||
export function NotificationButton() {
|
||||
const { data: user } = useAtomValue(currentUserAtom);
|
||||
const params = useParams();
|
||||
|
||||
|
||||
const userId = user?.id ? String(user.id) : null;
|
||||
// Get searchSpaceId from URL params - the component is rendered within /dashboard/[search_space_id]/
|
||||
const searchSpaceId = params?.search_space_id
|
||||
? Number(params.search_space_id)
|
||||
: null;
|
||||
|
||||
const { notifications, unreadCount, loading, markAsRead, markAllAsRead } =
|
||||
useNotifications(userId, searchSpaceId);
|
||||
const searchSpaceId = params?.search_space_id ? Number(params.search_space_id) : null;
|
||||
|
||||
const { notifications, unreadCount, loading, markAsRead, markAllAsRead } = useNotifications(
|
||||
userId,
|
||||
searchSpaceId
|
||||
);
|
||||
|
||||
return (
|
||||
<Popover>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue