fix: remove unnecessary div and props

This commit is contained in:
Valeriy
2019-05-02 21:25:13 +03:00
committed by mrugesh mohapatra
parent ebe420c099
commit 1660a267ba

View File

@ -5,33 +5,31 @@ import { Link, Spacer } from '../../../components/helpers';
const propTypes = {
githubPath: PropTypes.string
};
const GuideFooter = props => {
const { githubPath } = props;
return (
<div>
<Spacer />
<hr />
<h4>Contributing to the Guide</h4>
<p>
This open source guide is curated by thousands of contributors. You can
help by researching, writing and updating these articles. It is an easy
and fun way to get started with contributing to open source.
</p>
<ul>
<li>
<Link to='https://github.com/freeCodeCamp/freeCodeCamp/blob/master/CONTRIBUTING.md#research-write-and-update-our-guide-articles'>
Follow our contributing guidelines for working on guide articles
</Link>
.
</li>
<li>
<Link to={githubPath}>Edit this article on GitHub</Link>.
</li>
</ul>
<Spacer />
</div>
);
};
const GuideFooter = ({ githubPath }) => (
<>
<Spacer />
<hr />
<h4>Contributing to the Guide</h4>
<p>
This open source guide is curated by thousands of contributors. You can
help by researching, writing and updating these articles. It is an easy
and fun way to get started with contributing to open source.
</p>
<ul>
<li>
<Link to='https://github.com/freeCodeCamp/freeCodeCamp/blob/master/CONTRIBUTING.md#research-write-and-update-our-guide-articles'>
Follow our contributing guidelines for working on guide articles
</Link>
.
</li>
<li>
<Link to={githubPath}>Edit this article on GitHub</Link>.
</li>
</ul>
<Spacer />
</>
);
GuideFooter.displayName = 'GuideFooter';
GuideFooter.propTypes = propTypes;