Skip to content

Commit cfb934c

Browse files
refactor: uncomment theme toggle components in AppSidebar and DashboardNavbar
1 parent 1029c2f commit cfb934c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/dashboardComponents/AppSidebar.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ export function AppSidebar() {
9191
isCollapsed ? "flex-col space-y-2" : "justify-between"
9292
)}
9393
>
94-
{/* <Button
94+
<Button
9595
className="rounded-full"
9696
size="icon"
9797
onClick={() => setTheme(theme === "dark" ? "light" : "dark")}
9898
>
9999
<Sun className="h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" />
100100
<Moon className="absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" />
101101
<span className="sr-only">Toggle theme</span>
102-
</Button> */}
102+
</Button>
103103
<Logout/>
104104
</div>
105105
</div>

components/dashboardComponents/DashboardNavbar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export const DashboardNavbar = () => {
9696
))}
9797
</div>
9898
<div className="hidden lg:flex gap-2">
99-
{/* <ToggleTheme /> */}
99+
<ToggleTheme />
100100
<Logout />
101101
</div>
102102
</header>

0 commit comments

Comments
 (0)