Skip to content

Commit d3cbb19

Browse files
author
Ives van Hoorne
committed
Fix query
1 parent 229ef70 commit d3cbb19

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed
Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import React from 'react';
2-
import PropTypes from 'prop-types';
32
import styled, { ThemeProvider } from 'styled-components';
43

54
import theme from 'common/theme';
65

76
import Navigation from '../components/Navigation';
87
import Footer from '../components/Footer';
98

10-
import './index.css';
9+
import '../global.css';
1110

1211
const Absolute = styled.div`
1312
position: absolute;
@@ -16,24 +15,16 @@ const Absolute = styled.div`
1615
z-index: 20;
1716
`;
1817

19-
const Header = () => (
20-
<Absolute>
21-
<Navigation />
22-
</Absolute>
23-
);
24-
2518
const TemplateWrapper = ({ children }) => (
2619
<ThemeProvider theme={theme}>
2720
<div>
28-
<Header />
21+
<Absolute>
22+
<Navigation />
23+
</Absolute>
2924
<div style={{ maxWidth: '100vw', overflowX: 'hidden' }}>{children()}</div>
3025
<Footer />
3126
</div>
3227
</ThemeProvider>
3328
);
3429

35-
TemplateWrapper.propTypes = {
36-
children: PropTypes.func,
37-
};
38-
3930
export default TemplateWrapper;

packages/homepage/src/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default class HomePage extends React.PureComponent {
4646
}
4747
}
4848

49-
export const query = graphql`
49+
export const pageQuery = graphql`
5050
query ImageSizesQuery {
5151
publicationImages: allImageSharp(
5252
filter: { id: { regex: "/RecentPublications/" } }

0 commit comments

Comments
 (0)