diff --git a/apps/climatemappedafrica/src/components/DropdownSearch/DownloadSearch.js b/apps/climatemappedafrica/src/components/DropdownSearch/DownloadSearch.js index dc9f31362..fb3cfc7b2 100644 --- a/apps/climatemappedafrica/src/components/DropdownSearch/DownloadSearch.js +++ b/apps/climatemappedafrica/src/components/DropdownSearch/DownloadSearch.js @@ -111,7 +111,6 @@ function DropdownSearch({ onChange={handleChange} placeholder={placeholder} value={query} - {...props} sx={({ typography, palette }) => ({ borderRadius: typography.pxToRem(10), color: palette.primary.main, diff --git a/apps/climatemappedafrica/src/components/Hero/Hero.js b/apps/climatemappedafrica/src/components/Hero/Hero.js index 8b761f8dc..6085bc944 100644 --- a/apps/climatemappedafrica/src/components/Hero/Hero.js +++ b/apps/climatemappedafrica/src/components/Hero/Hero.js @@ -22,18 +22,19 @@ function Hero({ searchPlaceholder, properties, level, + explorePageSlug, ...props }) { const isUpLg = useMediaQuery((theme) => theme.breakpoints.up("lg")); const [hoverGeo, setHoverGeo] = useState(null); - const continentLevelZoom = isUpLg ? 2.4 : 2.1; + const continentLevelZoom = isUpLg ? 3 : 2.1; // We have to reduce the zoom level for continent so that all countries(Including islands) are visible within the designs const countryLevelZoom = isUpLg ? 6 : 5.25; const zoom = level === "continent" ? continentLevelZoom : countryLevelZoom; - return ( - + {center ? ( ) : null} diff --git a/apps/climatemappedafrica/src/components/Hero/Hero.snap.js b/apps/climatemappedafrica/src/components/Hero/Hero.snap.js index e94a3de38..1af23dffd 100644 --- a/apps/climatemappedafrica/src/components/Hero/Hero.snap.js +++ b/apps/climatemappedafrica/src/components/Hero/Hero.snap.js @@ -3,7 +3,7 @@ exports[` renders unchanged 1`] = `
renders unchanged 1`] = ` class="MuiGrid-root MuiGrid-container css-11lq3yg-MuiGrid-root" >
renders unchanged 1`] = ` Search for a location

code); + const theme = useTheme(); const onEachFeature = (feature, layer) => { layer.setStyle({ fillColor: theme.palette.background.default, @@ -55,22 +55,24 @@ function Map({ }); }); layer.on("click", () => { - router.push(`/explore/${feature.properties.code.toLowerCase()}`); + router.push( + `/${explorePageSlug}/${feature.properties.code.toLowerCase()}`, + ); }); } }; return ( ({ + sx={{ position: "relative", - height: { sm: "299px", lg: "471px" }, - width: { sm: "236px", lg: "371px" }, + height: { sm: "350px", lg: "471px" }, + width: { sm: "300px", lg: "500px" }, marginTop: { sm: "55px", lg: "42px" }, "& .leaflet-container": { background: "transparent", }, - })} + }} > !!siblingData?.enableHURUMap, },