Skip to content

Commit fa83dde

Browse files
author
Shaw
committed
feat(cloud-frontend): real chain brand marks on earnings network dropdown
Replaces the colored-emoji placeholders (🔵🟣⬛🟡) on the Dashboard ▸ Earnings ▸ Redemption Network dropdown with @web3icons/react branded SVG marks. The BNB Chain row in particular now uses the official BNB Smart Chain logo via NetworkBinanceSmartChain instead of a generic yellow circle. All four entries swapped at once so the row is visually consistent: - Base → NetworkBase - Solana → TokenSOL - Ethereum→ NetworkEthereum - BNB → NetworkBinanceSmartChain The icons render at size={16} to align with the existing text-sm row. Other parts of the audit (no code changes needed): - The login EVM/Solana button is already on @web3icons/react (commit 5c7cf08). - No hardcoded BNB-yellow hex codes (#F0B90B, #FCD535) live in source outside DESIGN.md's documentation palette. - The legacy "Binance Smart Chain" name only appears once in agent prompt content, contextually correct ("formerly Binance Smart Chain"). All UI / payments / payout code uses the current "BNB Smart Chain" / "BNB Chain" names. - Network display names are consistent: payments use "BNB Smart Chain" (specific chain id 56) and dashboards use "BNB Chain" (umbrella brand) — both are valid current names per BNB Chain's 2022 rename.
1 parent 4694935 commit fa83dde

1 file changed

Lines changed: 35 additions & 6 deletions

File tree

packages/cloud-frontend/src/dashboard/earnings/_components/earnings-page-client.tsx

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ import {
3939
TrendingUp,
4040
Wallet,
4141
} from "lucide-react";
42-
import { useCallback, useEffect, useState } from "react";
42+
import NetworkBase from "@web3icons/react/icons/networks/NetworkBase";
43+
import NetworkBinanceSmartChain from "@web3icons/react/icons/networks/NetworkBinanceSmartChain";
44+
import NetworkEthereum from "@web3icons/react/icons/networks/NetworkEthereum";
45+
import TokenSOL from "@web3icons/react/icons/tokens/TokenSOL";
46+
import { type ReactNode, useCallback, useEffect, useState } from "react";
4347
import { toast } from "sonner";
4448

4549
interface BalanceData {
@@ -111,11 +115,36 @@ interface SystemStatus {
111115
message?: string;
112116
}
113117

114-
const NETWORKS = [
115-
{ value: "base", label: "Base", icon: "🔵" },
116-
{ value: "solana", label: "Solana", icon: "🟣" },
117-
{ value: "ethereum", label: "Ethereum", icon: "⬛" },
118-
{ value: "bnb", label: "BNB Chain", icon: "🟡" },
118+
// Real brand marks via @web3icons/react `variant="branded"` (the official
119+
// multi-color logos, not single-color stencils or emoji placeholders).
120+
// Network icons stay at 16px to align with the surrounding text-sm label.
121+
const NETWORKS: Array<{ value: string; label: string; icon: ReactNode }> = [
122+
{
123+
value: "base",
124+
label: "Base",
125+
icon: <NetworkBase variant="branded" size={16} aria-hidden="true" />,
126+
},
127+
{
128+
value: "solana",
129+
label: "Solana",
130+
icon: <TokenSOL variant="branded" size={16} aria-hidden="true" />,
131+
},
132+
{
133+
value: "ethereum",
134+
label: "Ethereum",
135+
icon: <NetworkEthereum variant="branded" size={16} aria-hidden="true" />,
136+
},
137+
{
138+
value: "bnb",
139+
label: "BNB Chain",
140+
icon: (
141+
<NetworkBinanceSmartChain
142+
variant="branded"
143+
size={16}
144+
aria-hidden="true"
145+
/>
146+
),
147+
},
119148
];
120149

121150
const SOURCE_ICONS = {

0 commit comments

Comments
 (0)