refactor interfaces and references

This commit is contained in:
geoffrey45
2022-11-30 20:27:44 +03:00
committed by Mungai Njoroge
parent 4a49d48011
commit 6d8a9f880b
44 changed files with 195 additions and 171 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ export default function createTrackProps(track: Track) {
return {
track,
index: track.index + 1,
isCurrent: queue().currentid === track.id,
isCurrent: queue().currenttrackhash === track.trackhash,
isCurrentPlaying:
queue().currentid === track.id && queue().playing,
queue().currenttrackhash === track.trackhash && queue().playing,
};
}