mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-06-17 18:12:08 +02:00
Fix minor mistake
This commit is contained in:
parent
b0e1d04030
commit
b0404b6613
2 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
/* eslint-disable no-undef */
|
/* eslint-disable no-undef */
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import PropTypes from "prop-types";
|
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 { graphql, StaticQuery } from "gatsby";
|
||||||
|
|
||||||
import * as styles from "./navigation.module.scss";
|
import * as styles from "./navigation.module.scss";
|
||||||
|
@ -11,6 +11,7 @@ import OffScreenNav from "./offscreenNav";
|
||||||
const Navigation = ({ isHome }) => {
|
const Navigation = ({ isHome }) => {
|
||||||
let [atTop, setAtTop] = useState(false);
|
let [atTop, setAtTop] = useState(false);
|
||||||
const [offscreenNavActive, setOffscreenNavActive] = useState(false);
|
const [offscreenNavActive, setOffscreenNavActive] = useState(false);
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
const closeOffscreenNav = () => setOffscreenNavActive(false);
|
const closeOffscreenNav = () => setOffscreenNavActive(false);
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* eslint-disable no-undef */
|
/* eslint-disable no-undef */
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import PropTypes from "prop-types";
|
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 { createPortal } from "react-dom";
|
||||||
|
|
||||||
import * as styles from "./navigation.module.scss";
|
import * as styles from "./navigation.module.scss";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue