diff --git a/compass/app/admin/layout.tsx b/compass/app/admin/layout.tsx index 78bf6a6..21994d4 100644 --- a/compass/app/admin/layout.tsx +++ b/compass/app/admin/layout.tsx @@ -2,7 +2,6 @@ import Sidebar from "@/components/Sidebar/Sidebar"; import React, { useState } from "react"; -import { ChevronDoubleRightIcon } from "@heroicons/react/24/outline"; import { createClient } from "@/utils/supabase/client"; import { useRouter } from "next/navigation"; import { useEffect } from "react"; @@ -56,34 +55,13 @@ export default function RootLayout({
{user ? (
- {/* button to open sidebar */} - - {/* sidebar */} -
- -
- {/* page ui */} +
{user ? (
- {/* button to open sidebar */} - - {/* sidebar */} -
- -
- {/* page ui */} +
{user ? (
- {/* button to open sidebar */} - - {/* sidebar */} - {/*
*/} - - { /*
*/ } + + {/*
*/} {/* page ui */}
{user ? (
- {/* button to open sidebar */} - - {/* sidebar */} -
- -
- {/* page ui */} +
= ({ isAdmin: admin, }) => { return ( -
- {/* button to close sidebar */} -
- -
-
- {/* user + logout button */} -
- + <> + {/* Button to open the sidebar. */} + + {/* The sidebar itself. */} +
+ {/* Button to close sidebar */} +
+
- {/* navigation menu */} -
-

- Pages -

- +
-
+ ); };