mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 18:18:27 -05:00
fix(curriculum): music player formatting (#55404)
This commit is contained in:
@@ -651,7 +651,7 @@ const playNextSong = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const playPreviousSong = () =>{
|
const playPreviousSong = () => {
|
||||||
if (userData?.currentSong === null) return;
|
if (userData?.currentSong === null) return;
|
||||||
else {
|
else {
|
||||||
const currentSongIndex = getCurrentSongIndex();
|
const currentSongIndex = getCurrentSongIndex();
|
||||||
|
|||||||
@@ -657,7 +657,7 @@ const playNextSong = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const playPreviousSong = () =>{
|
const playPreviousSong = () => {
|
||||||
if (userData?.currentSong === null) return;
|
if (userData?.currentSong === null) return;
|
||||||
else {
|
else {
|
||||||
const currentSongIndex = getCurrentSongIndex();
|
const currentSongIndex = getCurrentSongIndex();
|
||||||
|
|||||||
@@ -654,7 +654,7 @@ const playNextSong = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const playPreviousSong = () =>{
|
const playPreviousSong = () => {
|
||||||
if (userData?.currentSong === null) return;
|
if (userData?.currentSong === null) return;
|
||||||
else {
|
else {
|
||||||
const currentSongIndex = getCurrentSongIndex();
|
const currentSongIndex = getCurrentSongIndex();
|
||||||
|
|||||||
@@ -662,7 +662,7 @@ const playNextSong = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const playPreviousSong = () =>{
|
const playPreviousSong = () => {
|
||||||
if (userData?.currentSong === null) return;
|
if (userData?.currentSong === null) return;
|
||||||
else {
|
else {
|
||||||
const currentSongIndex = getCurrentSongIndex();
|
const currentSongIndex = getCurrentSongIndex();
|
||||||
|
|||||||
@@ -643,7 +643,7 @@ const playNextSong = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const playPreviousSong = () =>{
|
const playPreviousSong = () => {
|
||||||
if (userData?.currentSong === null) return;
|
if (userData?.currentSong === null) return;
|
||||||
else {
|
else {
|
||||||
const currentSongIndex = getCurrentSongIndex();
|
const currentSongIndex = getCurrentSongIndex();
|
||||||
|
|||||||
@@ -661,7 +661,7 @@ const playNextSong = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const playPreviousSong = () =>{
|
const playPreviousSong = () => {
|
||||||
if (userData?.currentSong === null) return;
|
if (userData?.currentSong === null) return;
|
||||||
else {
|
else {
|
||||||
const currentSongIndex = getCurrentSongIndex();
|
const currentSongIndex = getCurrentSongIndex();
|
||||||
|
|||||||
@@ -651,7 +651,7 @@ const playNextSong = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const playPreviousSong = () =>{
|
const playPreviousSong = () => {
|
||||||
if (userData?.currentSong === null) return;
|
if (userData?.currentSong === null) return;
|
||||||
else {
|
else {
|
||||||
const currentSongIndex = getCurrentSongIndex();
|
const currentSongIndex = getCurrentSongIndex();
|
||||||
|
|||||||
@@ -667,7 +667,7 @@ const playNextSong = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const playPreviousSong = () =>{
|
const playPreviousSong = () => {
|
||||||
if (userData?.currentSong === null) return;
|
if (userData?.currentSong === null) return;
|
||||||
else {
|
else {
|
||||||
const currentSongIndex = getCurrentSongIndex();
|
const currentSongIndex = getCurrentSongIndex();
|
||||||
|
|||||||
@@ -667,7 +667,7 @@ const playNextSong = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const playPreviousSong = () =>{
|
const playPreviousSong = () => {
|
||||||
if (userData?.currentSong === null) return;
|
if (userData?.currentSong === null) return;
|
||||||
else {
|
else {
|
||||||
const currentSongIndex = getCurrentSongIndex();
|
const currentSongIndex = getCurrentSongIndex();
|
||||||
|
|||||||
@@ -643,7 +643,7 @@ const playNextSong = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const playPreviousSong = () =>{
|
const playPreviousSong = () => {
|
||||||
if (userData?.currentSong === null) return;
|
if (userData?.currentSong === null) return;
|
||||||
else {
|
else {
|
||||||
const currentSongIndex = getCurrentSongIndex();
|
const currentSongIndex = getCurrentSongIndex();
|
||||||
|
|||||||
@@ -671,7 +671,7 @@ const playNextSong = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const playPreviousSong = () =>{
|
const playPreviousSong = () => {
|
||||||
if (userData?.currentSong === null) return;
|
if (userData?.currentSong === null) return;
|
||||||
else {
|
else {
|
||||||
const currentSongIndex = getCurrentSongIndex();
|
const currentSongIndex = getCurrentSongIndex();
|
||||||
|
|||||||
@@ -655,7 +655,7 @@ const playNextSong = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const playPreviousSong = () =>{
|
const playPreviousSong = () => {
|
||||||
if (userData?.currentSong === null) return;
|
if (userData?.currentSong === null) return;
|
||||||
else {
|
else {
|
||||||
const currentSongIndex = getCurrentSongIndex();
|
const currentSongIndex = getCurrentSongIndex();
|
||||||
|
|||||||
@@ -667,7 +667,7 @@ const playNextSong = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const playPreviousSong = () =>{
|
const playPreviousSong = () => {
|
||||||
if (userData?.currentSong === null) return;
|
if (userData?.currentSong === null) return;
|
||||||
else {
|
else {
|
||||||
const currentSongIndex = getCurrentSongIndex();
|
const currentSongIndex = getCurrentSongIndex();
|
||||||
|
|||||||
@@ -641,7 +641,7 @@ const playNextSong = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const playPreviousSong = () =>{
|
const playPreviousSong = () => {
|
||||||
if (userData?.currentSong === null) return;
|
if (userData?.currentSong === null) return;
|
||||||
else {
|
else {
|
||||||
const currentSongIndex = getCurrentSongIndex();
|
const currentSongIndex = getCurrentSongIndex();
|
||||||
|
|||||||
@@ -624,7 +624,7 @@ const playNextSong = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const playPreviousSong = () =>{
|
const playPreviousSong = () => {
|
||||||
if (userData?.currentSong === null) return;
|
if (userData?.currentSong === null) return;
|
||||||
else {
|
else {
|
||||||
const currentSongIndex = getCurrentSongIndex();
|
const currentSongIndex = getCurrentSongIndex();
|
||||||
|
|||||||
@@ -665,7 +665,7 @@ const playNextSong = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const playPreviousSong = () =>{
|
const playPreviousSong = () => {
|
||||||
if (userData?.currentSong === null) return;
|
if (userData?.currentSong === null) return;
|
||||||
else {
|
else {
|
||||||
const currentSongIndex = getCurrentSongIndex();
|
const currentSongIndex = getCurrentSongIndex();
|
||||||
@@ -1451,7 +1451,7 @@ const playNextSong = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const playPreviousSong = () =>{
|
const playPreviousSong = () => {
|
||||||
if (userData?.currentSong === null) return;
|
if (userData?.currentSong === null) return;
|
||||||
else {
|
else {
|
||||||
const currentSongIndex = getCurrentSongIndex();
|
const currentSongIndex = getCurrentSongIndex();
|
||||||
|
|||||||
Reference in New Issue
Block a user