Implementar modo oscuro con toggle en sidebar
This commit is contained in:
+10
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user