From b0404b6613b279f93cf92671bdc98606ce69a22b Mon Sep 17 00:00:00 2001 From: Kevin Kandlbinder Date: Mon, 6 Dec 2021 15:56:00 +0000 Subject: [PATCH] Fix minor mistake --- src/components/navigation.js | 3 ++- src/components/offscreenNav.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/navigation.js b/src/components/navigation.js index f221462..fb25401 100644 --- a/src/components/navigation.js +++ b/src/components/navigation.js @@ -1,7 +1,7 @@ /* eslint-disable no-undef */ import React, { useEffect, useState } from "react"; import PropTypes from "prop-types"; -import { Trans, Link } from "gatsby-plugin-react-i18next"; +import { Trans, Link, useTranslation } from "gatsby-plugin-react-i18next"; import { graphql, StaticQuery } from "gatsby"; import * as styles from "./navigation.module.scss"; @@ -11,6 +11,7 @@ import OffScreenNav from "./offscreenNav"; const Navigation = ({ isHome }) => { let [atTop, setAtTop] = useState(false); const [offscreenNavActive, setOffscreenNavActive] = useState(false); + const { t } = useTranslation(); const closeOffscreenNav = () => setOffscreenNavActive(false); diff --git a/src/components/offscreenNav.js b/src/components/offscreenNav.js index 01abd72..97df98b 100644 --- a/src/components/offscreenNav.js +++ b/src/components/offscreenNav.js @@ -1,7 +1,7 @@ /* eslint-disable no-undef */ import React from "react"; import PropTypes from "prop-types"; -import { Trans, Link } from "gatsby-plugin-react-i18next"; +import { Trans, Link, useTranslation } from "gatsby-plugin-react-i18next"; import { createPortal } from "react-dom"; import * as styles from "./navigation.module.scss";