diff --git a/components/infoPage/infoBox/InfoBox.tsx b/components/infoPage/infoBox/InfoBox.tsx index cf60b5f..c2a3bb0 100644 --- a/components/infoPage/infoBox/InfoBox.tsx +++ b/components/infoPage/infoBox/InfoBox.tsx @@ -44,13 +44,13 @@ const InfoBox = () => { return ( <> -
+
{/* floodgen */} - {/* { + { isDesktop ? : - } */} + } {/* */}
diff --git a/components/streetView/FloodingButton.tsx b/components/streetView/FloodingButton.tsx index a58b649..dff46e5 100644 --- a/components/streetView/FloodingButton.tsx +++ b/components/streetView/FloodingButton.tsx @@ -14,13 +14,13 @@ type Props = { const FloodingButton = ({ clicked, hovered, title, src, clickHandler, mouseEnterHandler, mouseLeaveHandler }: Props) => { - const isDesktop = useMediaQuery({ query: "(min-width: 1024px)" }) + const isTablet = useMediaQuery({ query: "(min-width: 768px)" }) return (
{/* {title} */} {title} - {isDesktop &&

{title}

} + {isTablet &&

{title}

}
) } diff --git a/components/streetView/StreetView.tsx b/components/streetView/StreetView.tsx index 1ef4493..a8b5457 100644 --- a/components/streetView/StreetView.tsx +++ b/components/streetView/StreetView.tsx @@ -135,7 +135,7 @@ const StreetView = () => {
-
+
{ floodingBtnsData.map((f, i) => floodingButtonClickHandler(f.title)} mouseEnterHandler={() => mouseEnterHandler(i)} mouseLeaveHandler={mouseLeaveHandler} />) }