|
|
@@ -12,6 +12,7 @@ import {
|
|
|
type WithdrawBankOption,
|
|
|
type WithdrawChannel,
|
|
|
} from "@/lib/withdrawal-api";
|
|
|
+import { resolveRemittanceChannelIconUrl } from "@/lib/remittance-icon-url";
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
|
|
function channelGroupLabel(channel: WithdrawChannel): string {
|
|
|
@@ -453,7 +454,16 @@ export default function WithdrawApplyPage() {
|
|
|
<tr key={item.id} className="hover:bg-white/5 transition-colors">
|
|
|
<td className="py-4 px-4">
|
|
|
<div className="flex items-center gap-3">
|
|
|
- {item.icon ? <img src={item.icon} alt="" className="h-8 w-8 rounded-lg bg-white p-1" /> : <div className="h-8 w-8 rounded-lg bg-white/10" />}
|
|
|
+ {item.icon ? (
|
|
|
+ // eslint-disable-next-line @next/next/no-img-element
|
|
|
+ <img
|
|
|
+ src={resolveRemittanceChannelIconUrl(item.icon)}
|
|
|
+ alt={item.name || item.code || ""}
|
|
|
+ className="h-8 w-auto max-h-8 rounded-lg bg-white p-1 object-contain"
|
|
|
+ />
|
|
|
+ ) : (
|
|
|
+ <div className="h-8 w-8 rounded-lg bg-white/10" />
|
|
|
+ )}
|
|
|
<span className="font-bold text-slate-200">{item.name || item.code}</span>
|
|
|
</div>
|
|
|
</td>
|