Skip to content

Commit 6552c45

Browse files
committed
chore: use webp icon format
1 parent b161f85 commit 6552c45

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

packages/xmatter/next/client.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,7 @@ export function XmatterIcon({
3333
baseUrl = "https://xmatter.org",
3434
...props
3535
}: XmatterIconProps): ReactNode {
36-
return <IconWithFallback src={`${baseUrl}/${namespace}/${chainId}/${address}/icon`} fallback={fallback} {...props} />;
36+
return (
37+
<IconWithFallback src={`${baseUrl}/${namespace}/${chainId}/${address}/icon.webp`} fallback={fallback} {...props} />
38+
);
3739
}

packages/xmatter/next/server.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export async function XmatterIcon({
1616
fallback,
1717
...props
1818
}: XmatterIconProps): Promise<ReactNode> {
19-
const url = await client.getIconUrl(chainId, address);
19+
const url = await client.getIconWebpUrl(chainId, address);
2020
if (!url) {
2121
return fallback;
2222
}

0 commit comments

Comments
 (0)