fix: icon color

This commit is contained in:
Alejandro Gomez 2023-06-25 07:27:28 +02:00
parent c28f927cb4
commit 80e5b67495
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817
2 changed files with 3 additions and 17 deletions

View File

@ -114,14 +114,6 @@
margin: 0;
}
.zapper-gold-icon {
color: #FFD700;
}
.zapper-silver-icon {
color: #C0C0C0;
}
.zapper-bronze-icon {
color: #CD7F32;
.top-zapper-icon {
color: #FFCB44;
}

View File

@ -50,12 +50,6 @@ function TopZappers({ zaps }: { zaps: ParsedZap[] }) {
<div className="top-zappers-container">
{sortedZappers.map((pk, idx) => {
const total = totalZapped(pk, zaps);
const iconClass =
idx === 0
? "zapper-gold-icon"
: idx === 1
? "zapper-silver-icon"
: "zapper-bronze-icon";
return (
<div className="top-zapper" key={pk}>
{pk === "anon" ? (
@ -63,7 +57,7 @@ function TopZappers({ zaps }: { zaps: ParsedZap[] }) {
) : (
<Profile pubkey={pk} options={{ showName: false }} />
)}
<Icon name="zap" className={iconClass} />
<Icon name="zap" className="top-zapper-icon" />
<p className="top-zapper-amount">{formatSats(total)}</p>
</div>
);