X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Fpages%2FTechnique.js;h=aabb8d0780db86a73be7e50133fe66ac2a66d7c8;hb=d7563cd775e2e07bf9d479fece757433533e0ecf;hp=8c202ed44ad1fce81a80e4b1f89e16481eff8944;hpb=a94dda65a823a1f191ffbc3981448adfae270fcc;p=alttp.git
diff --git a/resources/js/components/pages/Technique.js b/resources/js/components/pages/Technique.js
index 8c202ed..aabb8d0 100644
--- a/resources/js/components/pages/Technique.js
+++ b/resources/js/components/pages/Technique.js
@@ -1,5 +1,6 @@
import axios from 'axios';
import React, { useEffect, useState } from 'react';
+import { Helmet } from 'react-helmet';
import { withTranslation } from 'react-i18next';
import { useParams } from 'react-router-dom';
@@ -8,7 +9,7 @@ import ErrorMessage from '../common/ErrorMessage';
import Loading from '../common/Loading';
import NotFound from '../pages/NotFound';
import Detail from '../techniques/Detail';
-import { getTranslation } from '../../helpers/Technique';
+import { getLanguages, getTranslation } from '../../helpers/Technique';
import i18n from '../../i18n';
const Technique = () => {
@@ -39,12 +40,6 @@ const Technique = () => {
};
}, [name]);
- useEffect(() => {
- if (technique) {
- window.document.title = getTranslation(technique, 'title', i18n.language);
- }
- }, [technique, i18n.language]);
-
if (loading) {
return ;
}
@@ -58,6 +53,23 @@ const Technique = () => {
}
return
+
+ {getTranslation(technique, 'title', i18n.language)}
+
+
+ {getLanguages(technique).map(l =>
+
+ )}
+
;
};