diff --git a/app/[locale]/(routes)/components/menu-items/SecondBrain.tsx b/app/[locale]/(routes)/components/menu-items/SecondBrain.tsx
index e88b5d2..f5f40ae 100644
--- a/app/[locale]/(routes)/components/menu-items/SecondBrain.tsx
+++ b/app/[locale]/(routes)/components/menu-items/SecondBrain.tsx
@@ -9,7 +9,7 @@ import {
import { Lightbulb, ServerIcon, UserIcon } from "lucide-react";
import Link from "next/link";
-import { useRouter } from "next/navigation";
+import { usePathname, useRouter } from "next/navigation";
import React from "react";
type Props = {
@@ -17,9 +17,14 @@ type Props = {
};
const SecondBrainModuleMenu = ({ open }: Props) => {
+ const pathname = usePathname();
+ const isPath = pathname.includes("secondBrain");
return (
-
+
Second brain
diff --git a/app/[locale]/(routes)/components/ui/MenuItem.tsx b/app/[locale]/(routes)/components/ui/MenuItem.tsx
deleted file mode 100644
index 8f7293f..0000000
--- a/app/[locale]/(routes)/components/ui/MenuItem.tsx
+++ /dev/null
@@ -1,72 +0,0 @@
-import { Inbox, WrenchIcon } from "lucide-react";
-import {
- ClipboardEditIcon,
- FileBarChart,
- FileCheckIcon,
- FileTextIcon,
- GraduationCapIcon,
- Home,
- LightbulbIcon,
- Server,
- Users,
- UsersIcon,
-} from "lucide-react";
-import Link from "next/link";
-
-function MenuItem({ open, icon, route, menuItem }: any) {
- let showIcon;
- switch (icon) {
- case "home":
- showIcon =
;
- break;
- case "userGroup":
- showIcon =
;
- break;
- case "user":
- showIcon =
;
- break;
- case "server":
- showIcon =
;
- break;
- case "document":
- showIcon =
;
- break;
- case "documentChart":
- showIcon =
;
- break;
- case "lightBulb":
- showIcon =
;
- break;
- case "documentCheck":
- showIcon =
;
- break;
- case "clipBoardDocument":
- showIcon =
;
- break;
- case "academicCap":
- showIcon =
;
- break;
- case "wrenchScrewdriver":
- showIcon =
;
- break;
- case "inboxIcon":
- showIcon =
;
- break;
- default:
-
;
- }
-
- return (
-
-
-
{showIcon}
- {open &&
{menuItem}
}
-
-
- );
-}
-
-export default MenuItem;
diff --git a/app/[locale]/(routes)/devmode/page.tsx b/app/[locale]/(routes)/devmode/page.tsx
index 7ad2e8f..be78373 100644
--- a/app/[locale]/(routes)/devmode/page.tsx
+++ b/app/[locale]/(routes)/devmode/page.tsx
@@ -1,9 +1,13 @@
+/*
+ This route is used to test the different components of the app.
+*/
+
import MultiSelect from "@/shadcn-examples/MultiSelect";
import React from "react";
const DevModePage = () => {
return (
-
+
);
diff --git a/app/[locale]/(routes)/projects/dialogs/NewProject.tsx b/app/[locale]/(routes)/projects/dialogs/NewProject.tsx
index b3e0d04..71a3d3b 100644
--- a/app/[locale]/(routes)/projects/dialogs/NewProject.tsx
+++ b/app/[locale]/(routes)/projects/dialogs/NewProject.tsx
@@ -37,9 +37,7 @@ import React, { useEffect, useState } from "react";
import { useForm } from "react-hook-form";
import { z } from "zod";
-type Props = {};
-
-const NewProjectDialog = (props: Props) => {
+const NewProjectDialog = () => {
const [open, setOpen] = useState(false);
const [isLoading, setIsLoading] = useState(false);
@@ -94,7 +92,7 @@ const NewProjectDialog = (props: Props) => {
return (
-
+
New project
diff --git a/app/[locale]/(routes)/projects/dialogs/NewTask.tsx b/app/[locale]/(routes)/projects/dialogs/NewTask.tsx
index 05d13e0..eece32b 100644
--- a/app/[locale]/(routes)/projects/dialogs/NewTask.tsx
+++ b/app/[locale]/(routes)/projects/dialogs/NewTask.tsx
@@ -115,7 +115,7 @@ const NewTaskDialog = ({ users, boards }: Props) => {
return (
-
+
Create task