scrollable safelist in sidebar

This commit is contained in:
mmv 2019-09-23 15:39:58 +04:00
parent 6d1c44bc39
commit 6e80d09d17
1 changed files with 7 additions and 1 deletions

View File

@ -30,6 +30,12 @@ const useStyles = makeStyles({
icon: { icon: {
marginRight: sm, marginRight: sm,
}, },
list: {
overflow: 'hidden',
overflowY: 'scroll',
padding: 0,
height: '100%',
},
listItemRoot: { listItemRoot: {
paddingTop: 0, paddingTop: 0,
paddingBottom: 0, paddingBottom: 0,
@ -60,7 +66,7 @@ const SafeList = ({
const classes = useStyles() const classes = useStyles()
return ( return (
<MuiList> <MuiList className={classes.list}>
{safes.map((safe) => ( {safes.map((safe) => (
<React.Fragment key={safe.address}> <React.Fragment key={safe.address}>
<Link to={`${SAFELIST_ADDRESS}/${safe.address}`} onClick={onSafeClick}> <Link to={`${SAFELIST_ADDRESS}/${safe.address}`} onClick={onSafeClick}>