Skip to content

Commit

Permalink
refactor(header): move Header component to layout/
Browse files Browse the repository at this point in the history
  • Loading branch information
SMerdzhanov committed Jun 5, 2020
1 parent 94c5d79 commit f526a78
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
Empty file added src/components/.gitkeep
Empty file.
13 changes: 2 additions & 11 deletions src/components/Header/Header.js → src/layout/Header/Header.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'gatsby';

const Header = ({ siteTitle }) => (
const Header = () => (
<header
style={{
background: `rebeccapurple`,
Expand All @@ -24,19 +23,11 @@ const Header = ({ siteTitle }) => (
textDecoration: `none`
}}
>
{siteTitle}
Gatsby Starter Essentials
</Link>
</h1>
</div>
</header>
);

Header.propTypes = {
siteTitle: PropTypes.string
};

Header.defaultProps = {
siteTitle: ``
};

export default Header;
File renamed without changes.

0 comments on commit f526a78

Please sign in to comment.