Actually fixed it this time ...

This commit is contained in:
supergrecko
2019-07-27 01:21:14 +02:00
parent 68576692f8
commit c8fd1f7959
+23 -37
View File
@@ -1,43 +1,29 @@
import { Link } from "gatsby";
import {Link} from "gatsby";
import React from "react";
import icon from "./icon.png";
import { NavbarWrapper, NavbarItems } from "./styles";
import {NavbarWrapper, NavbarItems} from "./styles";
// @todo maybe find alternative type for data
const Navbar = ({ siteTitle }: any) => (
<HeaderWrapper>
<div
style={{
margin: `0 auto`,
maxWidth: 960,
padding: `1.45rem 1.0875rem`,
}}
>
<div style={{ display: "flex", flexDirection: "row", alignItems: "center" }}>
{/* <img src={icon} style={{ width: "70px" }} /> */}
<h1 style={{ margin: 0 }}>
<Link
to="/"
style={{
color: `white`,
textDecoration: `none`,
}}
>
{siteTitle}
</Link>
</h1>
</div>
</div>
</HeaderWrapper>
const Navbar = ({siteTitle = ""}) => (
<NavbarWrapper>
<NavbarItems>
{/* <img src={icon} style={{ width: "70px" }} /> */}
<h1 style={{margin: 0}}>
<Link
to="/"
style={{
color: `white`,
textDecoration: `none`,
}}
>
{siteTitle}
</Link>
</h1>
</NavbarItems>
<NavbarItems>
<button>discord link here</button>
<button>reddit (maybe?) link here</button>
</NavbarItems>
</NavbarWrapper>
)
Navbar.propTypes = {
siteTitle: String
}
Navbar.defaultProps = {
siteTitle: ``,
}
export default Navbar;