diff --git a/web/components/usa-map/usa-map.tsx b/web/components/usa-map/usa-map.tsx index 208ee16f..2841e04c 100644 --- a/web/components/usa-map/usa-map.tsx +++ b/web/components/usa-map/usa-map.tsx @@ -46,6 +46,7 @@ type USAMapPropTypes = { defaultFill?: string customize?: Customize hideStateTitle?: boolean + className?: string } export const USAMap = ({ @@ -58,6 +59,7 @@ export const USAMap = ({ defaultFill = '#d3d3d3', customize, hideStateTitle, + className, }: USAMapPropTypes) => { const fillStateColor = (state: string) => customize?.[state]?.fill ? (customize[state].fill as string) : defaultFill @@ -66,7 +68,7 @@ export const USAMap = ({ return ( - - {stateName} - {hideStateTitle ? null : {stateName}} ) diff --git a/web/pages/map.tsx b/web/pages/midterms.tsx similarity index 74% rename from web/pages/map.tsx rename to web/pages/midterms.tsx index a79343a3..1ae72f7a 100644 --- a/web/pages/map.tsx +++ b/web/pages/midterms.tsx @@ -1,4 +1,5 @@ import { Col } from 'web/components/layout/col' +import { Page } from 'web/components/page' import { Title } from 'web/components/title' import { StateElectionMarket, @@ -70,19 +71,21 @@ const senateMidterms: StateElectionMarket[] = [ const App = () => { return ( - - - + + + + - - + + + ) }