diff --git a/Elecciones-Web/frontend/src/App.tsx b/Elecciones-Web/frontend/src/App.tsx index 8784279..f622284 100644 --- a/Elecciones-Web/frontend/src/App.tsx +++ b/Elecciones-Web/frontend/src/App.tsx @@ -1,8 +1,7 @@ // src/App.tsx -import { useState, useEffect } from 'react'; +import { useState } from 'react'; import { MunicipioWidget } from './components/MunicipioWidget'; import { MunicipioSelector } from './components/MunicipioSelector'; -import { getMunicipios, type MunicipioSimple } from './services/api'; import './App.css'; import { ResumenProvincialWidget } from './components/ResumenProvincialWidget'; import { BancasWidget } from './components/BancasWidget'; @@ -10,17 +9,6 @@ import { TelegramasView } from './components/TelegramasView'; function App() { const [selectedMunicipioId, setSelectedMunicipioId] = useState(null); - const [listaMunicipios, setListaMunicipios] = useState([]); - const [loading, setLoading] = useState(true); - - useEffect(() => { - getMunicipios() - .then(setListaMunicipios) - .catch(err => console.error("Error al cargar la lista de municipios", err)) - .finally(() => setLoading(false)); - }, []); - - if (loading) return

Cargando datos iniciales...

; return ( <>