]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/techniques/Overview.js
more content variety
[alttp.git] / resources / js / components / techniques / Overview.js
index 8c7cd4db3e8b8725452779105d9454b7f29b537a..16868655b12fe473a2f7425415939504fa914a74 100644 (file)
@@ -6,12 +6,16 @@ import { withTranslation } from 'react-i18next';
 import List from './List';
 import i18n from '../../i18n';
 
-const Overview = ({ techniques }) => <Container>
-       <h1>{i18n.t('techniques.heading')}</h1>
+const Overview = ({
+       namespace,
+       techniques,
+}) => <Container>
+       <h1>{i18n.t(`${namespace}.heading`)}</h1>
        <List techniques={techniques} />
 </Container>;
 
 Overview.propTypes = {
+       namespace: PropTypes.string,
        techniques: PropTypes.arrayOf(PropTypes.shape({
        })),
 };