Skip to content

Commit 3d5c1b9

Browse files
committed
Make nav link closer to footer and consistent
1 parent 5f4d86e commit 3d5c1b9

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

packages/react-renderer-demo/src/app/src/components/common/connected-links.js

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,30 @@
11
import React, { useContext } from 'react';
2-
import clsx from 'clsx';
32
import Grid from '@material-ui/core/Grid';
43
import Button from '@material-ui/core/Button';
54
import makeStyles from '@material-ui/styles/makeStyles';
65
import ChevronRight from '@material-ui/icons/ChevronRight';
76
import ChevronLeft from '@material-ui/icons/ChevronLeft';
87
import Link from 'next/link';
9-
import { useRouter } from 'next/router';
108

119
import MenuContext from '../navigation/menu-context';
1210

1311
const 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

2823
const 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}`}>

packages/react-renderer-demo/src/app/src/components/footer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const drawerWidth = 240;
4444

4545
const useStyles = makeStyles((theme) => ({
4646
footer: {
47-
marginTop: 64,
47+
//marginTop: 64,
4848
backgroundColor: grey[200],
4949
display: 'flex',
5050
justifyContent: 'space-between',

0 commit comments

Comments
 (0)