Remove reactjkplayer's audioTitle, as it is not used and only causes warnings in the console
This commit is contained in:
@@ -41,10 +41,6 @@ const useStyle = makeStyles((theme) => ({
|
|||||||
|
|
||||||
let audioInstance = null
|
let audioInstance = null
|
||||||
|
|
||||||
const audioTitle = (audioInfo) => {
|
|
||||||
return audioInfo.name ? `${audioInfo.name} - ${audioInfo.singer}` : ''
|
|
||||||
}
|
|
||||||
|
|
||||||
const AudioTitle = ({ audioInfo, className }) => {
|
const AudioTitle = ({ audioInfo, className }) => {
|
||||||
if (!audioInfo.name) {
|
if (!audioInfo.name) {
|
||||||
return ''
|
return ''
|
||||||
@@ -167,7 +163,6 @@ const Player = () => {
|
|||||||
destroyText: translate('player.destroyText'),
|
destroyText: translate('player.destroyText'),
|
||||||
downloadText: translate('player.downloadText'),
|
downloadText: translate('player.downloadText'),
|
||||||
removeAudioListsText: translate('player.removeAudioListsText'),
|
removeAudioListsText: translate('player.removeAudioListsText'),
|
||||||
audioTitle: audioTitle,
|
|
||||||
clickToDeleteText: (name) =>
|
clickToDeleteText: (name) =>
|
||||||
translate('player.clickToDeleteText', { name }),
|
translate('player.clickToDeleteText', { name }),
|
||||||
emptyLyricText: translate('player.emptyLyricText'),
|
emptyLyricText: translate('player.emptyLyricText'),
|
||||||
|
|||||||
Reference in New Issue
Block a user