add open/close to sidebar & responsive sidebar & head & page dashboard and user account

This commit is contained in:
Ehsan
2024-09-13 02:19:47 +03:30
parent a1571bbb62
commit d1f289bdca
40 changed files with 481 additions and 140 deletions
+3 -2
View File
@@ -1,8 +1,9 @@
import AddDoctorPage from "@/components/panel/addDoctor"
import AddDoctorPage from "@/components/panel/addDoctor";
import Information from '@/data/information.json';
function AddDoctor() {
return (
<AddDoctorPage />
<AddDoctorPage data={Information} />
)
}
+7 -1
View File
@@ -5,17 +5,23 @@ import Sidebar from "@/components/layoutPanel/sidebar";
import Information from '@/data/information.json';
import UserDetail from "@/components/layoutPanel/userDetail";
import { usePathname } from "next/navigation";
import { useState } from "react";
function LayoutPanel({ children }) {
const pathname = usePathname();
const [active, setActive] = useState(false);
return (
<div className="flex min-h-screen">
<Sidebar />
<Sidebar
active={active}
setActive={setActive}
/>
<main className="w-full">
<Header
data={Information}
setActive={setActive}
disableProfile={pathname.includes('dashboard')}
/>
<section className="my-[24px] opacity-element mx-[16px] bg-[#FAFAFA]">