diff --git a/app/(app)/_layout/Sidebar.tsx b/app/(app)/_layout/Sidebar.tsx index 80c5ad8..8f31f05 100644 --- a/app/(app)/_layout/Sidebar.tsx +++ b/app/(app)/_layout/Sidebar.tsx @@ -22,12 +22,14 @@ import { import dynamic from "next/dynamic"; import { useModal } from "@/app/_providers/modal/provider"; import { IconType } from "react-icons"; + const ZapPickerModal = dynamic(() => import("@/components/Modals/ZapPicker"), { ssr: false, }); -const NewEventModal = dynamic(() => import("@/components/Modals/NewEvent"), { +const AddNoteButton = dynamic(() => import("./components/AddNoteButton"), { ssr: false, }); + type NavigationLink = { type: "link"; href: string; @@ -209,23 +211,7 @@ export default function Sidebar() { } })}
- - +
diff --git a/app/(app)/_layout/components/AddNoteButton.tsx b/app/(app)/_layout/components/AddNoteButton.tsx new file mode 100644 index 0000000..aa0190a --- /dev/null +++ b/app/(app)/_layout/components/AddNoteButton.tsx @@ -0,0 +1,29 @@ +import { useModal } from "@/app/_providers/modal/provider"; +import { Button } from "@/components/ui/button"; +import { RiAddFill } from "react-icons/ri"; +import NewEventModal from "@/components/Modals/NewEvent"; + +export default function AddNoteButton() { + const modal = useModal(); + return ( + <> + + + + ); +}