Fix MaterialUI errors & warnings

Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
Philipp Hugenroth
2021-07-30 11:38:31 +02:00
parent e21551c90a
commit 110bebc37e
3 changed files with 8 additions and 3 deletions
@@ -24,7 +24,12 @@ const useStyles = makeStyles((theme: Theme) => ({
minWidth: 0,
paddingTop: theme.spacing(3),
paddingBottom: theme.spacing(3),
...theme.mixins.gutters({}),
paddingLeft: theme.spacing(2),
paddingRight: theme.spacing(2),
[theme.breakpoints.up('sm')]: {
paddingLeft: theme.spacing(3),
paddingRight: theme.spacing(3),
},
},
stretch: {
display: 'flex',
@@ -167,7 +167,7 @@ export const SidebarItem = forwardRef<any, SidebarItemProps>((props, ref) => {
<Badge
color="secondary"
variant="dot"
overlap="circle"
overlap="circular"
invisible={!hasNotifications}
>
<Icon fontSize="small" />
+1 -1
View File
@@ -86,7 +86,7 @@ export const AddShortcut = ({ onClose, anchorEl, api }: Props) => {
<Popover
open={open}
anchorEl={anchorEl}
onExit={handleClose}
TransitionProps={{ onExit: handleClose }}
onClose={onClose}
anchorOrigin={{
vertical: 'top',