mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-06-18 18:42:05 +02:00
Lint and cleanup code
This commit is contained in:
parent
b16262025a
commit
a17f9b2b61
17 changed files with 755 additions and 185 deletions
|
@ -5,8 +5,8 @@ export default function LanguageSwitcher() {
|
|||
const {languages, originalPath} = useI18next();
|
||||
|
||||
return (
|
||||
<div class="languageModalInner">
|
||||
<h2>Languages (<a href="#top" class="modalCloseLink">×</a>)</h2>
|
||||
<div className="languageModalInner">
|
||||
<h2>Languages (<a href="#top" className="modalCloseLink">×</a>)</h2>
|
||||
<ul>
|
||||
{languages.map((lng) => (
|
||||
<li key={lng}>
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
import React from "react"
|
||||
import PropTypes from "prop-types"
|
||||
import { Trans, Link } from "gatsby-plugin-react-i18next"
|
||||
import { graphql, StaticQuery } from 'gatsby'
|
||||
|
||||
export default function Navigation({isHome, module}) {
|
||||
const Navigation = ({isHome, module}) => {
|
||||
return (
|
||||
<div className={"topBar" + (isHome ? " homeBar" : "")}>
|
||||
<nav className="topBarInner">
|
||||
|
@ -23,4 +24,11 @@ export default function Navigation({isHome, module}) {
|
|||
</nav>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Navigation.propTypes = {
|
||||
isHome: PropTypes.boolean.isRequired,
|
||||
module: PropTypes.string.isRequired
|
||||
}
|
||||
|
||||
export default Navigation;
|
|
@ -65,7 +65,7 @@ function SEO({ description, meta, title }) {
|
|||
}
|
||||
].concat(meta)}
|
||||
>
|
||||
<script src="https://kit.fontawesome.com/1377f925e0.js" crossorigin="anonymous"></script>
|
||||
<script src="https://kit.fontawesome.com/1377f925e0.js" crossOrigin="anonymous"></script>
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com"/>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Anonymous+Pro:wght@400;700&family=Roboto&display=swap" rel="stylesheet"/>
|
||||
</Helmet>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue