Skip to content

Commit

Permalink
Removed location props hack now that it's been fixed in Gatbsy
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn committed Sep 21, 2017
1 parent 8e5c61f commit 994a730
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions www/src/layouts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ class Template extends Component {
render() {
const {children, location} = this.props;

// HACK
// https://github.com/gatsbyjs/gatsby/issues/2180
const childrenParams = typeof window === 'undefined'
? {location}
: undefined;

// TODO - is there a better way to check if we need we have a sidebar?
let layoutHasSidebar = false;
if (location.pathname.match(/^\/(docs|tutorial|community|blog)/)) {
Expand Down Expand Up @@ -73,7 +67,7 @@ class Template extends Component {
marginTop: 40,
},
}}>
{children(childrenParams)}
{children()}
</Flex>
<Footer layoutHasSidebar={layoutHasSidebar} />
</div>
Expand Down

0 comments on commit 994a730

Please sign in to comment.