Implementar modo oscuro con toggle en sidebar

This commit is contained in:
2026-04-14 22:29:11 -03:00
parent f91964febe
commit 1bec305447
3 changed files with 94 additions and 16 deletions
+10 -1
View File
@@ -12,8 +12,9 @@ import { NuevoIngreso } from '@/sections/NuevoIngreso';
import { EditIngreso } from '@/sections/EditIngreso';
import { Spinner } from '@/components/ui/spinner';
import { Button } from '@/components/ui/button';
import { ThemeProvider } from '@/contexts/ThemeContext';
function App() {
function AppContent() {
const store = useHospitalStore();
if (!store.isLoaded) {
@@ -207,4 +208,12 @@ case 'nuevoingreso':
);
}
function App() {
return (
<ThemeProvider>
<AppContent />
</ThemeProvider>
);
}
export default App;