Fix song context menu "on hover" visibility

This commit is contained in:
Deluan 2020-11-26 15:08:26 -05:00 • committed by Deluan Quintão
commit a42fb024be
7 changed files with 100 additions and 61 deletions

View file

@ -10,7 +10,12 @@ import subsonic from '../subsonic'
const useStyles = makeStyles({
star: {
color: (props) => props.color,
visibility: (props) => (props.starred ? 'visible' : 'inherit'),
visibility: (props) =>
props.starred
? 'visible'
: props.visible === false
? 'hidden'
: 'inherit',
},
})