From f8660968defd177b5bcd866681e2e96a6229f336 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Wed, 5 Oct 2022 17:33:02 -0500 Subject: [PATCH] usa map: fix sizing --- web/components/usa-map/usa-map.tsx | 67 +++++++++++++++--------------- 1 file changed, 33 insertions(+), 34 deletions(-) diff --git a/web/components/usa-map/usa-map.tsx b/web/components/usa-map/usa-map.tsx index c372397e..d8d0128b 100644 --- a/web/components/usa-map/usa-map.tsx +++ b/web/components/usa-map/usa-map.tsx @@ -1,6 +1,7 @@ // https://github.com/jb-1980/usa-map-react // MIT License +import clsx from 'clsx' import { DATA } from './data' import { USAState } from './usa-state' @@ -65,40 +66,38 @@ export const USAMap = ({ const stateClickHandler = (state: string) => customize?.[state]?.clickHandler return ( -
- - {title} - - {States({ - hideStateTitle, - fillStateColor, - stateClickHandler, - })} - - - - + + {title} + + {States({ + hideStateTitle, + fillStateColor, + stateClickHandler, + })} + + + - -
+ + ) }