Trabajo de ajuste en widgets y db para frontend
This commit is contained in:
		
							
								
								
									
										17
									
								
								Elecciones-Web/frontend-admin/src/App.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								Elecciones-Web/frontend-admin/src/App.tsx
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| // src/App.tsx | ||||
| import { useAuth } from './context/AuthContext'; | ||||
| import { LoginPage } from './components/LoginPage'; | ||||
| import { DashboardPage } from './components/DashboardPage'; | ||||
| import './App.css'; // Puede añadir estilos globales aquí | ||||
|  | ||||
| function App() { | ||||
|   const { isAuthenticated } = useAuth(); | ||||
|  | ||||
|   return ( | ||||
|     <div className="App"> | ||||
|       {isAuthenticated ? <DashboardPage /> : <LoginPage />} | ||||
|     </div> | ||||
|   ); | ||||
| } | ||||
|  | ||||
| export default App; | ||||
		Reference in New Issue
	
	Block a user