mirror of
				https://github.com/mastermindzh/rickvanlieshout.com
				synced 2025-11-04 02:29:46 +01:00 
			
		
		
		
	refactor: fixing linting error in pages/_template.jsx
adds react/forbid-prop-types to be ignored in eslintrc could be added in an additional refactoring round right now, I'm not sure what to choose as proptypes...
This commit is contained in:
		@@ -1,28 +1,23 @@
 | 
			
		||||
import React from 'react'
 | 
			
		||||
import { Link } from 'react-router'
 | 
			
		||||
import { prefixLink } from 'gatsby-helpers'
 | 
			
		||||
import { config } from 'config'
 | 
			
		||||
import React from 'react';
 | 
			
		||||
 | 
			
		||||
import '../static/css/reset.css'
 | 
			
		||||
import '../static/css/typography.css'
 | 
			
		||||
import '../static/css/base.css'
 | 
			
		||||
import '../static/css/reset.css';
 | 
			
		||||
import '../static/css/typography.css';
 | 
			
		||||
import '../static/css/base.css';
 | 
			
		||||
 | 
			
		||||
class Template extends React.Component {
 | 
			
		||||
    render() {
 | 
			
		||||
        const {location, children} = this.props
 | 
			
		||||
  render() {
 | 
			
		||||
    const { children } = this.props;
 | 
			
		||||
 | 
			
		||||
        return (
 | 
			
		||||
            <div className='wrapper'>
 | 
			
		||||
              { children }
 | 
			
		||||
            </div>
 | 
			
		||||
            );
 | 
			
		||||
    }
 | 
			
		||||
    return (
 | 
			
		||||
      <div className="wrapper">
 | 
			
		||||
        {children}
 | 
			
		||||
      </div>
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Template.propTypes = {
 | 
			
		||||
    children: React.PropTypes.any,
 | 
			
		||||
    location: React.PropTypes.object,
 | 
			
		||||
    route: React.PropTypes.object,
 | 
			
		||||
}
 | 
			
		||||
  children: React.PropTypes.any,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
export default Template
 | 
			
		||||
export default Template;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user