From 92b22dc99eb06279b8a7f7f305d3bcfb917b1e05 Mon Sep 17 00:00:00 2001 From: Dakshesh Jain <65905942+dakshesh14@users.noreply.github.com> Date: Tue, 1 Aug 2023 13:30:51 +0530 Subject: [PATCH] style: showing 'Created by me' tab to all user (#1739) * style: showing 'Created by me' tab to all user * refactor: removed unnecessary imports --- .../notifications/notification-header.tsx | 82 +++++-------------- 1 file changed, 22 insertions(+), 60 deletions(-) diff --git a/apps/app/components/notifications/notification-header.tsx b/apps/app/components/notifications/notification-header.tsx index 3886683210..e1003f636d 100644 --- a/apps/app/components/notifications/notification-header.tsx +++ b/apps/app/components/notifications/notification-header.tsx @@ -1,10 +1,5 @@ import React from "react"; -import { useRouter } from "next/router"; - -// hooks -import useWorkspaceMembers from "hooks/use-workspace-members"; - // components import { Icon, Tooltip } from "components/ui"; // helpers @@ -44,11 +39,6 @@ export const NotificationHeader: React.FC = (props) => setSelectedTab, } = props; - const router = useRouter(); - const { workspaceSlug } = router.query; - - const { isOwner, isMember } = useWorkspaceMembers(workspaceSlug?.toString() ?? ""); - const notificationTabs: Array<{ label: string; value: NotificationType; @@ -150,59 +140,31 @@ export const NotificationHeader: React.FC = (props) => ) : ( )}