Lint and cleanup code

This commit is contained in:
Kevin Kandlbinder 2020-12-27 03:27:00 +01:00
parent b16262025a
commit a17f9b2b61
17 changed files with 755 additions and 185 deletions

View file

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