X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Fpages%2FMap.js;h=8291ef2e982fc9a544fc8e4c6a4d4c51ad5b843c;hb=5a0be9cded90d70dd16a56d30b4804dbd830aa0f;hp=841227cd4ac45a8c5ac0433359748b4bf0c3ca2d;hpb=e937f3f41b33ba94d36f898573df75a9cd10e5c0;p=alttp.git diff --git a/resources/js/components/pages/Map.js b/resources/js/components/pages/Map.js index 841227c..8291ef2 100644 --- a/resources/js/components/pages/Map.js +++ b/resources/js/components/pages/Map.js @@ -1,28 +1,37 @@ 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'; import Pins from '../map/Pins'; +import UWSuperTiles from '../map/UWSuperTiles'; const Map = () => { + const [uwOverlay, setUWOverlay] = React.useState(false); + + const { activeMap } = useParams(); const container = React.useRef(); const { t } = useTranslation(); - React.useEffect(() => { - window.document.title = t('map.heading'); - }, []); - return + + {t('map.heading')} - {t(`map.${activeMap}Long`)} + + + -
-

{t('map.heading')}

- +
+

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

+
+ ;