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
+4 -4
View File
@@ -7,7 +7,7 @@ import {
TextField,
} from 'react-admin'
import { useMediaQuery } from '@material-ui/core'
import StarIcon from '@material-ui/icons/Star'
import FavoriteIcon from '@material-ui/icons/Favorite'
import {
DurationField,
List,
@@ -25,7 +25,7 @@ import { SongListActions } from './SongListActions'
import { AlbumLinkField } from './AlbumLinkField'
import { AddToPlaylistDialog } from '../dialogs'
import { makeStyles } from '@material-ui/core/styles'
import StarBorderIcon from '@material-ui/icons/StarBorder'
import FavoriteBorderIcon from '@material-ui/icons/FavoriteBorder'
const useStyles = makeStyles({
contextHeader: {
@@ -50,7 +50,7 @@ const SongFilter = (props) => (
<SearchInput source="title" alwaysOn />
<QuickFilter
source="starred"
label={<StarIcon fontSize={'small'} />}
label={<FavoriteIcon fontSize={'small'} />}
defaultValue={true}
/>
</Filter>
@@ -115,7 +115,7 @@ const SongList = (props) => {
sortByOrder={'DESC'}
className={classes.contextMenu}
label={
<StarBorderIcon
<FavoriteBorderIcon
fontSize={'small'}
className={classes.contextHeader}
/>