File tree 3 files changed +5
-14
lines changed 3 files changed +5
-14
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import PropTypes from 'prop-types' ;
3
2
import styled , { ThemeProvider } from 'styled-components' ;
4
3
5
4
import theme from 'common/theme' ;
6
5
7
6
import Navigation from '../components/Navigation' ;
8
7
import Footer from '../components/Footer' ;
9
8
10
- import './index .css' ;
9
+ import '../global .css' ;
11
10
12
11
const Absolute = styled . div `
13
12
position: absolute;
@@ -16,24 +15,16 @@ const Absolute = styled.div`
16
15
z-index: 20;
17
16
` ;
18
17
19
- const Header = ( ) => (
20
- < Absolute >
21
- < Navigation />
22
- </ Absolute >
23
- ) ;
24
-
25
18
const TemplateWrapper = ( { children } ) => (
26
19
< ThemeProvider theme = { theme } >
27
20
< div >
28
- < Header />
21
+ < Absolute >
22
+ < Navigation />
23
+ </ Absolute >
29
24
< div style = { { maxWidth : '100vw' , overflowX : 'hidden' } } > { children ( ) } </ div >
30
25
< Footer />
31
26
</ div >
32
27
</ ThemeProvider >
33
28
) ;
34
29
35
- TemplateWrapper . propTypes = {
36
- children : PropTypes . func ,
37
- } ;
38
-
39
30
export default TemplateWrapper ;
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export default class HomePage extends React.PureComponent {
46
46
}
47
47
}
48
48
49
- export const query = graphql `
49
+ export const pageQuery = graphql `
50
50
query ImageSizesQuery {
51
51
publicationImages: allImageSharp(
52
52
filter: { id: { regex: "/RecentPublications/" } }
You can’t perform that action at this time.
0 commit comments