X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Fpages%2FMap.js;h=8291ef2e982fc9a544fc8e4c6a4d4c51ad5b843c;hb=5a0be9cded90d70dd16a56d30b4804dbd830aa0f;hp=b27560261194512b99000b6ac389c23c349983a1;hpb=939bf6d3ab44e3ce08116c2e9fdab160c35e894b;p=alttp.git diff --git a/resources/js/components/pages/Map.js b/resources/js/components/pages/Map.js index b275602..8291ef2 100644 --- a/resources/js/components/pages/Map.js +++ b/resources/js/components/pages/Map.js @@ -2,7 +2,9 @@ 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'; import List from '../map/List'; import OpenSeadragon from '../map/OpenSeadragon'; @@ -12,17 +14,19 @@ import UWSuperTiles from '../map/UWSuperTiles'; const Map = () => { const [uwOverlay, setUWOverlay] = React.useState(false); + const { activeMap } = useParams(); const container = React.useRef(); const { t } = useTranslation(); return - {t('map.heading')} + {t('map.heading')} - {t(`map.${activeMap}Long`)} +
-

{t('map.heading')}

+

{t('map.heading')} - {t(`map.${activeMap}Long`)}