feat: notifications rework

This commit is contained in:
Taranto 2020-03-30 13:03:57 +01:00 committed by Josh Harvey
parent b6e7d98b72
commit ffa8713ee4
77 changed files with 2281 additions and 3269 deletions

View file

@ -0,0 +1,27 @@
import { makeStyles, IconButton as IconB, SvgIcon } from '@material-ui/core'
import React from 'react'
const styles = {
root: {
'&:hover': {
backgroundColor: 'inherit'
}
}
}
const useStyles = makeStyles(styles)
const IconButton = ({ children, onClick, ...props }) => {
const classes = useStyles()
return (
<IconB
{...props}
classes={{ root: classes.root }}
disableRipple
onClick={onClick}>
<SvgIcon>{children}</SvgIcon>
</IconB>
)
}
export default IconButton