From a3b841423f5d3ccc7d538349273dd393152aea6e Mon Sep 17 00:00:00 2001 From: mantikoros Date: Wed, 5 Oct 2022 17:12:42 -0500 Subject: [PATCH] midterms: posititoning, make mobile friendly --- web/components/usa-map/usa-map.tsx | 70 +++++++++++++++--------------- web/pages/midterms.tsx | 33 +++----------- 2 files changed, 41 insertions(+), 62 deletions(-) diff --git a/web/components/usa-map/usa-map.tsx b/web/components/usa-map/usa-map.tsx index 2841e04c..c372397e 100644 --- a/web/components/usa-map/usa-map.tsx +++ b/web/components/usa-map/usa-map.tsx @@ -53,8 +53,6 @@ export const USAMap = ({ onClick = (e) => { console.log(e.currentTarget.dataset.name) }, - width = 959, - height = 593, title = 'US states map', defaultFill = '#d3d3d3', customize, @@ -67,40 +65,40 @@ export const USAMap = ({ const stateClickHandler = (state: string) => customize?.[state]?.clickHandler return ( - - {title} - - {States({ - hideStateTitle, - fillStateColor, - stateClickHandler, - })} - - - +
+ + {title} + + {States({ + hideStateTitle, + fillStateColor, + stateClickHandler, + })} + + + + - - + +
) } diff --git a/web/pages/midterms.tsx b/web/pages/midterms.tsx index d1dfb509..47930bc1 100644 --- a/web/pages/midterms.tsx +++ b/web/pages/midterms.tsx @@ -184,67 +184,48 @@ const App = () => {
Governors
House
Related markets