ok
This commit is contained in:
@@ -121,8 +121,13 @@ const MusicComponent = ({ song, min, max, onDecision }) => {
|
||||
onTouchEnd={handleTouchEnd}
|
||||
style={{ transform: `translateX(${positionX}px)` }}
|
||||
ref={containerRef}>
|
||||
{song[3] && <div className="decisionbgrnd" style={{ backgroundColor: song[4] ? "green" : "red" }}>
|
||||
<h1 className="decision">{song[4] ? "next up" : "skipped"}</h1></div>}
|
||||
{song[3] && song[5] !== true ? <div className="decisionbgrnd" style={{ backgroundColor: song[4] ? "green" : "red" }}>
|
||||
<h1 className="decision">{song[4] ? "next up" : "skipped"}</h1></div>
|
||||
:
|
||||
|
||||
<div className="decisionbgrnd" style={{ backgroundColor: song[4] ? "green" : (song[3] ? "lightblue" : 'none') }}>
|
||||
<h1 className="decision">rekomendasi</h1></div>}
|
||||
|
||||
<div className="bgrnd" style={{ backgroundColor: backgroundColor }}></div>
|
||||
<img
|
||||
src={song[0]?.image || song.image}
|
||||
|
||||
Reference in New Issue
Block a user