X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=resources%2Fjs%2Fcomponents%2Fpages%2FTechnique.js;h=e38061106a5d582bf9368fe05d6f6ab34e1a8f91;hb=a66d944386be0800f8f60644adbac721d9f77dd1;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..e380611 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';
@@ -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,10 @@ const Technique = () => {
}
return
+
+ {getTranslation(technique, 'title', i18n.language)}
+
+
;
};