diff --git a/components/infoPage/infoBox/InfoBox.tsx b/components/infoPage/infoBox/InfoBox.tsx index 15b469c..fe4fdaa 100644 --- a/components/infoPage/infoBox/InfoBox.tsx +++ b/components/infoPage/infoBox/InfoBox.tsx @@ -22,7 +22,7 @@ const InfoBox = () => { const [boxShown, setBoxShown] = useState(false) const { setOpenNarrative } = useContext(NarrativeContext) as NarrativeType - const { setOpenStreetView } = useContext(StreetViewContext) as StreetViewType + const { setOpenStreetView, openStreetView } = useContext(StreetViewContext) as StreetViewType const isDesktop = useMediaQuery({ query: "(min-width: 1024px)" }) @@ -64,7 +64,7 @@ const InfoBox = () => { -
boxShown ? boxShownClickHandler(false) : boxShownClickHandler(true)}> +
boxShown ? boxShownClickHandler(false) : boxShownClickHandler(true)}> { boxShown ? : } diff --git a/components/streetView/StreetInfo.tsx b/components/streetView/StreetInfo.tsx index 01245b4..d2cc920 100644 --- a/components/streetView/StreetInfo.tsx +++ b/components/streetView/StreetInfo.tsx @@ -22,7 +22,7 @@ const StreetInfo = ({ openStreetView }: Props) => { return ( <> { - openStreetView &&
+ openStreetView &&

{selectedSitesFeatures.properties['Place']}