Skip to content

Commit

Permalink
🍊Add theme mode at navbar and fix add cover issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lewislovelock committed Mar 23, 2024
1 parent 3f1fb2c commit 81a2cf8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion app/(main)/_components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { Id } from "@/convex/_generated/dataModel";
import { Title } from "./title";
import { Banner } from "./banner";
import { Menu } from "./menu";
import { ModeToggle } from "@/components/mode-toggle";

interface NavbarProps {
isCollapsed: boolean;
Expand Down Expand Up @@ -53,7 +54,10 @@ export const Navbar = ({
)}
<div className="flex items-center justify-between w-full">
<Title initialData={document} />
<Menu documentId={document._id} />
<div>
<ModeToggle />
<Menu documentId={document._id} />
</div>
</div>
</nav>
{document.isArchived && (
Expand Down
4 changes: 2 additions & 2 deletions components/providers/modal-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { useEffect, useState } from "react";

import { SettingsModal } from "@/components/modals/settings-modal";
// import { CoverImageModal } from "@/components/modals/cover-image-modal";
import { CoverImageModal } from "@/components/modals/cover-image-modal";

export const ModalProvider = () => {
const [isMounted, setIsMounted] = useState(false);
Expand All @@ -19,7 +19,7 @@ export const ModalProvider = () => {
return (
<>
<SettingsModal />
{/* <CoverImageModal /> */}
<CoverImageModal />
</>
);
};

0 comments on commit 81a2cf8

Please sign in to comment.