diff --git a/apps/space/components/issues/navbar/index.tsx b/apps/space/components/issues/navbar/index.tsx index 83d79f349..c9d0f52d1 100644 --- a/apps/space/components/issues/navbar/index.tsx +++ b/apps/space/components/issues/navbar/index.tsx @@ -1,12 +1,17 @@ import { useEffect } from "react"; + +import Link from "next/link"; import Image from "next/image"; -import { observer } from "mobx-react-lite"; import { useRouter } from "next/router"; + +// mobx +import { observer } from "mobx-react-lite"; // components import { NavbarSearch } from "./search"; import { NavbarIssueBoardView } from "./issue-board-view"; -import { NavbarIssueFilter } from "./issue-filter"; import { NavbarTheme } from "./theme"; +// ui +import { PrimaryButton } from "components/ui"; // lib import { useMobxStore } from "lib/mobx/store-provider"; // store @@ -25,11 +30,13 @@ const renderEmoji = (emoji: string | { name: string; color: string }) => { }; const IssueNavbar = observer(() => { - const { project: projectStore }: RootStore = useMobxStore(); + const { project: projectStore, user: userStore }: RootStore = useMobxStore(); // router const router = useRouter(); const { workspace_slug, project_slug, board } = router.query; + const user = userStore?.currentUser; + useEffect(() => { if (workspace_slug && project_slug) { projectStore.fetchProjectSettings(workspace_slug.toString(), project_slug.toString()); @@ -77,6 +84,32 @@ const IssueNavbar = observer(() => {
+