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 11import React , { useContext } from 'react' ;
2- import clsx from 'clsx' ;
32import Grid from '@material-ui/core/Grid' ;
43import Button from '@material-ui/core/Button' ;
54import makeStyles from '@material-ui/styles/makeStyles' ;
65import ChevronRight from '@material-ui/icons/ChevronRight' ;
76import ChevronLeft from '@material-ui/icons/ChevronLeft' ;
87import Link from 'next/link' ;
9- import { useRouter } from 'next/router' ;
108
119import MenuContext from '../navigation/menu-context' ;
1210
1311const useStyles = makeStyles ( ( ) => ( {
1412 linksContainer : {
1513 paddingLeft : 32 ,
16- paddingRight : 64 ,
17- marginTop : 16 ,
14+ paddingRight : 32 ,
15+ marginTop : 64 ,
1816 marginBottom : 16
1917 } ,
20- withSideNav : {
21- width : 'calc(100% - 240px)'
22- } ,
2318 link : {
2419 textDecoration : 'none'
2520 }
2621} ) ) ;
2722
2823const ConnectedLinks = ( ) => {
2924 const { prev, next } = useContext ( MenuContext ) ;
30- const { pathname } = useRouter ( ) ;
3125 const classNames = useStyles ( ) ;
3226 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 } >
4028 < Grid item >
4129 { prev && prev . link && (
4230 < Link href = { `/${ prev . link } ` } >
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ const drawerWidth = 240;
4444
4545const useStyles = makeStyles ( ( theme ) => ( {
4646 footer : {
47- marginTop : 64 ,
47+ // marginTop: 64,
4848 backgroundColor : grey [ 200 ] ,
4949 display : 'flex' ,
5050 justifyContent : 'space-between' ,
You can’t perform that action at this time.
0 commit comments