diff --git a/src/layouts/index.jsx b/src/layouts/index.jsx index 2eece6b..f8f7465 100644 --- a/src/layouts/index.jsx +++ b/src/layouts/index.jsx @@ -1,24 +1,10 @@ -import React, { Component } from 'react' +import React from 'react' import PropTypes from 'prop-types' -import withRouter from 'react-router-dom/withRouter' -import TransitionGroup from 'react-transition-group/TransitionGroup' import Head from '../components/atoms/Head' import Header from '../components/organisms/Header' import Footer from '../components/organisms/Footer' -import { FadeIn } from '../components/atoms/Animations' import './index.scss' -class TransitionHandler extends Component { - shouldComponentUpdate() { - return this.props.location.pathname === window.location.pathname - } - - render() { - const { children } = this.props - return
{children}
- } -} - const TemplateWrapper = ({ data, location, children }) => { const meta = data.dataJson const isHomepage = location.pathname === '/' @@ -29,16 +15,7 @@ const TemplateWrapper = ({ data, location, children }) => {
- - - - {children()} - - - + {children()}