File tree 3 files changed +11
-13
lines changed
3 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import Grid from '@material-ui/core/Grid' ;
3
3
import { useAuth } from '../../components/Auth/AuthContext' ;
4
- import PersonalMenu from '../pageSections/Sidebar/PersonalMenu ' ;
4
+ import { Sidebar , Main } from '../pageSections' ;
5
5
6
6
function Profile ( ) {
7
7
const { authTokens } = useAuth ( ) ;
@@ -10,13 +10,11 @@ function Profile() {
10
10
11
11
return (
12
12
< Grid container spacing = { 1 } >
13
- < Grid item lg = { 3 } >
14
- < PersonalMenu />
15
- </ Grid >
16
- < Grid item lg = { 9 } >
13
+ < Sidebar />
14
+ < Main >
17
15
< h2 > Profile</ h2 >
18
16
< p > Welcome { authTokens . username } !</ p >
19
- </ Grid >
17
+ </ Main >
20
18
</ Grid >
21
19
) ;
22
20
}
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 PersonalMenu from '../pageSections/Sidebar/PersonalMenu ' ;
5
+ import { Sidebar , Main } from '../pageSections' ;
6
6
import { Grid , Typography } from '@material-ui/core' ;
7
7
import { ResourceCard } from './ResourceCard' ;
8
8
import { getResources } from '../../utils/queries' ;
@@ -47,10 +47,8 @@ function Resources() {
47
47
48
48
return (
49
49
< Grid container spacing = { 1 } >
50
- < Grid item lg = { 3 } >
51
- < PersonalMenu />
52
- </ Grid >
53
- < Grid item lg = { 9 } >
50
+ < Sidebar />
51
+ < Main >
54
52
< h2 > Resources</ h2 >
55
53
< Search label = "Search resources" search = { search } />
56
54
{ searchValue && (
@@ -62,7 +60,7 @@ function Resources() {
62
60
< br />
63
61
{ error && < div className = "errorMessage" > { error } </ div > }
64
62
{ results && renderResults ( ) }
65
- </ Grid >
63
+ </ Main >
66
64
</ Grid >
67
65
) ;
68
66
}
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
3
- export default function Footer ( ) {
3
+ function Footer ( ) {
4
4
return (
5
5
< footer >
6
6
< hr />
@@ -10,3 +10,5 @@ export default function Footer() {
10
10
</ footer >
11
11
) ;
12
12
}
13
+
14
+ export default Footer ;
You can’t perform that action at this time.
0 commit comments