From: Daniel Karbach Date: Sun, 5 Feb 2023 17:08:01 +0000 (+0100) Subject: set window title from map X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=cb6e69664f917891230a511608ceb568a5c176a0;p=alttp.git set window title from map --- diff --git a/resources/js/components/pages/Map.js b/resources/js/components/pages/Map.js index d8a1039..44ac0a0 100644 --- a/resources/js/components/pages/Map.js +++ b/resources/js/components/pages/Map.js @@ -10,6 +10,10 @@ const Map = () => { const container = React.useRef(); const { t } = useTranslation(); + React.useEffect(() => { + window.document.title = t('map.heading'); + }, []); + return