feat: notifications rework
This commit is contained in:
parent
b6e7d98b72
commit
ffa8713ee4
77 changed files with 2281 additions and 3269 deletions
27
new-lamassu-admin/src/components/buttons/IconButton.js
Normal file
27
new-lamassu-admin/src/components/buttons/IconButton.js
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue