Mejorar tema oscuro, añadir dropdownmenu en laboratorios, unificar estilos de botones a outline
This commit is contained in:
+9
-5
@@ -13,6 +13,7 @@ import { EditIngreso } from '@/sections/EditIngreso';
|
||||
import { Spinner } from '@/components/ui/spinner';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { ThemeProvider } from '@/contexts/ThemeContext';
|
||||
import { Toaster } from '@/components/ui/sonner';
|
||||
|
||||
function AppContent() {
|
||||
const store = useHospitalStore();
|
||||
@@ -127,7 +128,7 @@ function AppContent() {
|
||||
if (!internacion || !paciente) {
|
||||
return (
|
||||
<div className="p-4 text-center">
|
||||
<p className="text-gray-500">Internación no encontrada</p>
|
||||
<p className="text-gray-500 dark:text-gray-400">Internación no encontrada</p>
|
||||
<Button onClick={() => store.setVista('internaciones')}>Volver a Internaciones</Button>
|
||||
</div>
|
||||
);
|
||||
@@ -160,7 +161,7 @@ function AppContent() {
|
||||
/>
|
||||
);
|
||||
}
|
||||
case 'nuevoingreso':
|
||||
case 'nuevoingreso':
|
||||
return (
|
||||
<NuevoIngreso
|
||||
pacientes={store.pacientes}
|
||||
@@ -178,7 +179,7 @@ case 'nuevoingreso':
|
||||
if (!internacion || !paciente) {
|
||||
return (
|
||||
<div className="p-4 text-center">
|
||||
<p className="text-gray-500">Internación no encontrada</p>
|
||||
<p className="text-gray-500 dark:text-gray-400">Internación no encontrada</p>
|
||||
<Button onClick={() => store.setVista('internaciones')}>Volver a Internaciones</Button>
|
||||
</div>
|
||||
);
|
||||
@@ -197,6 +198,7 @@ case 'nuevoingreso':
|
||||
/>
|
||||
);
|
||||
}
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
};
|
||||
@@ -210,10 +212,12 @@ case 'nuevoingreso':
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<ThemeProvider>
|
||||
// @ts-expect-error - next-themes types mismatch
|
||||
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
|
||||
<AppContent />
|
||||
<Toaster position="top-right" />
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
export default App;
|
||||
Reference in New Issue
Block a user