diff --git a/src/App.tsx b/src/App.tsx index 132dd69..10dc395 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,6 +1,7 @@ import { Toaster } from "@/components/ui/toaster"; import { Toaster as Sonner } from "@/components/ui/sonner"; import { TooltipProvider } from "@/components/ui/tooltip"; +import { ThemeProvider } from "next-themes"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { BrowserRouter, Routes, Route } from "react-router-dom"; import { AppLayout } from "./components/layout/AppLayout"; @@ -15,23 +16,25 @@ const queryClient = new QueryClient(); const App = () => ( - - - - - - }> - } /> - } /> - } /> - } /> - } /> - - {/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */} - } /> - - - + + + + + + + }> + } /> + } /> + } /> + } /> + } /> + + {/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */} + } /> + + + + ); diff --git a/src/components/layout/AppSidebar.tsx b/src/components/layout/AppSidebar.tsx index 689e51d..43e962d 100644 --- a/src/components/layout/AppSidebar.tsx +++ b/src/components/layout/AppSidebar.tsx @@ -1,10 +1,14 @@ import { NavLink } from "react-router-dom"; +import { useTheme } from "next-themes"; import { Bot, FileText, TestTube, History, Link, + Sun, + Moon, + ArrowLeft, } from "lucide-react"; import { Sidebar, @@ -27,8 +31,14 @@ const menuItems = [ ]; export function AppSidebar() { + const { theme, setTheme } = useTheme(); + + const toggleTheme = () => { + setTheme(theme === "dark" ? "light" : "dark"); + }; + return ( - +
@@ -41,7 +51,7 @@ export function AppSidebar() {
- + Navegação @@ -72,6 +82,30 @@ export function AppSidebar() { + +
+ + + +
); }