Skip to content

Commit 119b585

Browse files
committed
refactor DashboardLayout component for improved readability and structure
1 parent 5286bf4 commit 119b585

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

src/Layout/DashboardLayout.jsx

+14-12
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,27 @@ import DashboardSidebar from "@/components/DashboardView/common/DashboardSidebar
33
import { useState } from "react";
44
import { Outlet } from "react-router-dom";
55

6-
76
const DashboardLayout = () => {
87
const [profileOpen, setProfileOpen] = useState(false);
98
const [sidebarOpen, setSidebarOpen] = useState(false);
109
return (
1110
<div className="relative pt-[70px] h-screen scroll-smooth">
12-
13-
<DashboardHeader profileOpen={profileOpen} setProfileOpen={setProfileOpen}/>
11+
<DashboardHeader
12+
profileOpen={profileOpen}
13+
setProfileOpen={setProfileOpen}
14+
/>
1415

15-
<div>
16-
<div className="flex items-start">
17-
<DashboardSidebar setSidebarOpen={setSidebarOpen} sidebarOpen={sidebarOpen}/>
16+
Hello senders
17+
<div className="flex items-start">
18+
<DashboardSidebar
19+
setSidebarOpen={setSidebarOpen}
20+
sidebarOpen={sidebarOpen}
21+
/>
1822

19-
<section className="main-content w-full overflow-auto p-6 ">
20-
<Outlet/>
21-
{/* <div className="overflow-x-auto no-scrollbar">
22-
</div> */}
23-
</section>
24-
</div>
23+
<section className="main-content w-full overflow-auto p-6 ">
24+
<Outlet />
25+
26+
</section>
2527
</div>
2628
</div>
2729
);

0 commit comments

Comments
 (0)