Fix minor mistake

This commit is contained in:
Kevin Kandlbinder 2021-12-06 15:56:00 +00:00 committed by GitHub
parent b0e1d04030
commit b0404b6613
2 changed files with 3 additions and 2 deletions

View file

@ -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);

View file

@ -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";