X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=inline;f=resources%2Fjs%2Fcomponents%2Fpages%2FMap.js;h=3cbd31f6025367f1bb98f3d16f3adc7e8f245cb2;hb=d256e01621a8b1072365ae0893002dccb7661898;hp=09e381a3af8bcb3c9a2ea67b9c15571dc585495d;hpb=8e274ddec45800cd727bb7138683b81cf2f7dcb1;p=alttp.git diff --git a/resources/js/components/pages/Map.js b/resources/js/components/pages/Map.js index 09e381a..3cbd31f 100644 --- a/resources/js/components/pages/Map.js +++ b/resources/js/components/pages/Map.js @@ -2,6 +2,7 @@ import React from 'react'; import { Container } from 'react-bootstrap'; import { Helmet } from 'react-helmet'; import { useTranslation } from 'react-i18next'; +import { useParams } from 'react-router'; import CanonicalLinks from '../common/CanonicalLinks'; import Buttons from '../map/Buttons'; @@ -13,6 +14,7 @@ import UWSuperTiles from '../map/UWSuperTiles'; const Map = () => { const [uwOverlay, setUWOverlay] = React.useState(false); + const { activeMap } = useParams(); const container = React.useRef(); const { t } = useTranslation(); @@ -21,7 +23,7 @@ const Map = () => {