File tree Expand file tree Collapse file tree 2 files changed +4
-16
lines changed
packages/react-renderer-demo/src/app/src/components Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Original file line number Diff line number Diff line change 1
1
import React , { useContext } from 'react' ;
2
- import clsx from 'clsx' ;
3
2
import Grid from '@material-ui/core/Grid' ;
4
3
import Button from '@material-ui/core/Button' ;
5
4
import makeStyles from '@material-ui/styles/makeStyles' ;
6
5
import ChevronRight from '@material-ui/icons/ChevronRight' ;
7
6
import ChevronLeft from '@material-ui/icons/ChevronLeft' ;
8
7
import Link from 'next/link' ;
9
- import { useRouter } from 'next/router' ;
10
8
11
9
import MenuContext from '../navigation/menu-context' ;
12
10
13
11
const useStyles = makeStyles ( ( ) => ( {
14
12
linksContainer : {
15
13
paddingLeft : 32 ,
16
- paddingRight : 64 ,
17
- marginTop : 16 ,
14
+ paddingRight : 32 ,
15
+ marginTop : 64 ,
18
16
marginBottom : 16
19
17
} ,
20
- withSideNav : {
21
- width : 'calc(100% - 240px)'
22
- } ,
23
18
link : {
24
19
textDecoration : 'none'
25
20
}
26
21
} ) ) ;
27
22
28
23
const ConnectedLinks = ( ) => {
29
24
const { prev, next } = useContext ( MenuContext ) ;
30
- const { pathname } = useRouter ( ) ;
31
25
const classNames = useStyles ( ) ;
32
26
return (
33
- < Grid
34
- container
35
- justify = "space-between"
36
- className = { clsx ( classNames . linksContainer , {
37
- [ classNames . withSideNav ] : pathname . includes ( '/renderer/' )
38
- } ) }
39
- >
27
+ < Grid container justify = "space-between" className = { classNames . linksContainer } >
40
28
< Grid item >
41
29
{ prev && prev . link && (
42
30
< Link href = { `/${ prev . link } ` } >
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ const drawerWidth = 240;
44
44
45
45
const useStyles = makeStyles ( ( theme ) => ( {
46
46
footer : {
47
- marginTop : 64 ,
47
+ // marginTop: 64,
48
48
backgroundColor : grey [ 200 ] ,
49
49
display : 'flex' ,
50
50
justifyContent : 'space-between' ,
You can’t perform that action at this time.
0 commit comments