Rem map
This commit is contained in:
@@ -7,7 +7,6 @@ import './App.css';
|
|||||||
import { ResumenProvincialWidget } from './components/ResumenProvincialWidget';
|
import { ResumenProvincialWidget } from './components/ResumenProvincialWidget';
|
||||||
import { BancasWidget } from './components/BancasWidget';
|
import { BancasWidget } from './components/BancasWidget';
|
||||||
import { TelegramasView } from './components/TelegramasView';
|
import { TelegramasView } from './components/TelegramasView';
|
||||||
import { MapaD3Widget } from './components/MapaD3Widget';
|
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
const [selectedMunicipioId, setSelectedMunicipioId] = useState<string | null>(null);
|
const [selectedMunicipioId, setSelectedMunicipioId] = useState<string | null>(null);
|
||||||
@@ -32,27 +31,7 @@ function App() {
|
|||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<section style={{ display: 'grid', gridTemplateColumns: '2fr 1fr', gap: '20px' }}>
|
|
||||||
<div>
|
|
||||||
<h2>Mapa de Resultados</h2>
|
|
||||||
<MapaD3Widget
|
|
||||||
municipios={listaMunicipios}
|
|
||||||
onMunicipioClick={setSelectedMunicipioId}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<h2>Consulta por Municipio</h2>
|
|
||||||
<MunicipioSelector
|
|
||||||
municipios={listaMunicipios}
|
|
||||||
onMunicipioChange={setSelectedMunicipioId}
|
|
||||||
/>
|
|
||||||
{selectedMunicipioId && (
|
|
||||||
<div style={{ marginTop: '20px' }}>
|
|
||||||
<MunicipioWidget municipioId={selectedMunicipioId} />
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
{/* Usamos el ID del distrito de Bs As ("02") */}
|
{/* Usamos el ID del distrito de Bs As ("02") */}
|
||||||
|
|||||||
Reference in New Issue
Block a user