Refactored the current ️/Star feature to ❤️/Love/Favourite feature. (#908)

* Added setRating feature to AlbumListView

* Refactored the iconography from  to ❤️

* Refactored the current component from StarButton to LoveButton

* Refactored all translations from Starred to Loved, and all props from showStar to showLove

* Refactored useToggleStar hook to useToggleLove

* rebased repository from master and removed stray commmits

* Refactored handler name from TOGGLE_STAR to TOGGLE_LOVE in PlayerToolbar.js

* Change "starred" translation to "Favorite"

Co-authored-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Neil Chauhan
2021-03-27 09:26:19 +05:30
committed by GitHub
parent db208600e4
commit ac37bf3631
16 changed files with 70 additions and 71 deletions
+5 -5
View File
@@ -18,7 +18,7 @@ import {
DurationField,
formatRange,
SizeField,
StarButton,
LoveButton,
} from '../common'
const useStyles = makeStyles((theme) => ({
@@ -66,7 +66,7 @@ const useStyles = makeStyles((theme) => ({
width: '100%',
height: '100%',
},
starButton: {
loveButton: {
top: theme.spacing(-0.2),
left: theme.spacing(0.5),
},
@@ -160,12 +160,12 @@ const AlbumDetails = ({ record }) => {
<CardContent className={classes.content}>
<Typography variant="h5">
{record.name}
<StarButton
className={classes.starButton}
<LoveButton
className={classes.loveButton}
record={record}
resource={'album'}
size={isDesktop ? 'default' : 'small'}
aria-label="star"
aria-label="love"
color="primary"
/>
</Typography>