chore: Apply linting fixes

This commit is contained in:
Bouncey
2019-02-16 08:20:53 +00:00
committed by mrugesh mohapatra
parent a63b84e748
commit 8e0237d042
16 changed files with 95 additions and 51 deletions

View File

@@ -1,14 +1,22 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Link as GatsbyLink } from 'gatsby';
import { Grid, Row, Col } from '@freecodecamp/react-bootstrap';
import './footer.css';
const propTypes = {
children: PropTypes.any,
external: PropTypes.bool,
to: PropTypes.string.isRequired
};
const ColHeader = ({ children, ...other }) => (
<div className='col-header' {...other}>
{children}
</div>
);
ColHeader.propTypes = propTypes;
const Link = ({ children, to, external, ...other }) => {
if (!external && (/^\/(?!\/)/).test(to)) {
@@ -25,6 +33,7 @@ const Link = ({ children, to, external, ...other }) => {
</a>
);
};
Link.propTypes = propTypes;
function Footer() {
return (