File tree 4 files changed +35
-1
lines changed
4 files changed +35
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React, { useState } from 'react';
2
2
import PropTypes from 'prop-types' ;
3
3
import { useQuery } from 'react-query' ;
4
4
import Search from '../../components/Search' ;
5
- import { Sidebar , Main } from '../pageSections' ;
5
+ import { Sidebar , Main } from '../pageSections/index.js ' ;
6
6
import { Grid , Typography } from '@material-ui/core' ;
7
7
import { ResourceCard } from './ResourceCard' ;
8
8
import { getResources } from '../../utils/queries' ;
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import PropTypes from 'prop-types' ;
3
+ import { Grid } from '@material-ui/core' ;
4
+
5
+ function Main ( { children } ) {
6
+ return (
7
+ < Grid item lg = { 9 } >
8
+ { children }
9
+ </ Grid >
10
+ ) ;
11
+ }
12
+
13
+ export default Main ;
14
+
15
+ Main . propTypes = {
16
+ children : PropTypes . node ,
17
+ } ;
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import PersonalMenu from './PersonalMenu' ;
3
+ import { Grid } from '@material-ui/core' ;
4
+
5
+ function Sidebar ( ) {
6
+ return (
7
+ < Grid item lg = { 3 } >
8
+ < PersonalMenu />
9
+ </ Grid >
10
+ ) ;
11
+ }
12
+
13
+ export default Sidebar ;
Original file line number Diff line number Diff line change
1
+ export { default as Sidebar } from './Sidebar' ;
2
+ export { default as Nav } from './Nav' ;
3
+ export { default as Main } from './Main' ;
4
+ export { default as Footer } from './Footer/index.js' ;
You can’t perform that action at this time.
0 commit comments