This commit is contained in:
parent
df30a4ecf0
commit
8c12b6c521
@ -88,10 +88,31 @@ const badges: ScoreBadge[] = [
|
||||
name: "Full Combo",
|
||||
create: (score: ScoreSaberScoreToken) => {
|
||||
return (
|
||||
<>
|
||||
<p>{score.fullCombo ? <span className="text-green-400">FC</span> : formatNumberWithCommas(score.missedNotes + score.badCuts)}</p>
|
||||
<XMarkIcon className={clsx("w-5 h-5", score.fullCombo ? "hidden" : "text-red-400")} />
|
||||
</>
|
||||
<Tooltip
|
||||
display={
|
||||
<div className="flex flex-col justify-center items-center">
|
||||
{!score.fullCombo ? (
|
||||
<>
|
||||
<p>Missed Notes: {formatNumberWithCommas(score.missedNotes)}</p>
|
||||
<p>Bad Cuts: {formatNumberWithCommas(score.badCuts)}</p>
|
||||
</>
|
||||
) : (
|
||||
<p>Full Combo</p>
|
||||
)}
|
||||
</div>
|
||||
}
|
||||
>
|
||||
<div className="flex gap-1">
|
||||
<p>
|
||||
{score.fullCombo ? (
|
||||
<span className="text-green-400">FC</span>
|
||||
) : (
|
||||
formatNumberWithCommas(score.missedNotes + score.badCuts)
|
||||
)}
|
||||
</p>
|
||||
<XMarkIcon className={clsx("w-5 h-5", score.fullCombo ? "hidden" : "text-red-400")} />
|
||||
</div>
|
||||
</Tooltip>
|
||||
);
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user