forked from Kieran/zap.stream
fix: icon color
This commit is contained in:
parent
c28f927cb4
commit
80e5b67495
@ -114,14 +114,6 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.zapper-gold-icon {
|
.top-zapper-icon {
|
||||||
color: #FFD700;
|
color: #FFCB44;
|
||||||
}
|
|
||||||
|
|
||||||
.zapper-silver-icon {
|
|
||||||
color: #C0C0C0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.zapper-bronze-icon {
|
|
||||||
color: #CD7F32;
|
|
||||||
}
|
}
|
||||||
|
@ -50,12 +50,6 @@ function TopZappers({ zaps }: { zaps: ParsedZap[] }) {
|
|||||||
<div className="top-zappers-container">
|
<div className="top-zappers-container">
|
||||||
{sortedZappers.map((pk, idx) => {
|
{sortedZappers.map((pk, idx) => {
|
||||||
const total = totalZapped(pk, zaps);
|
const total = totalZapped(pk, zaps);
|
||||||
const iconClass =
|
|
||||||
idx === 0
|
|
||||||
? "zapper-gold-icon"
|
|
||||||
: idx === 1
|
|
||||||
? "zapper-silver-icon"
|
|
||||||
: "zapper-bronze-icon";
|
|
||||||
return (
|
return (
|
||||||
<div className="top-zapper" key={pk}>
|
<div className="top-zapper" key={pk}>
|
||||||
{pk === "anon" ? (
|
{pk === "anon" ? (
|
||||||
@ -63,7 +57,7 @@ function TopZappers({ zaps }: { zaps: ParsedZap[] }) {
|
|||||||
) : (
|
) : (
|
||||||
<Profile pubkey={pk} options={{ showName: false }} />
|
<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>
|
<p className="top-zapper-amount">{formatSats(total)}</p>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user