Skip to content

Commit 0e26a88

Browse files
fix: resolve ecosystem image URL using thirdweb storage (#5120)
## Problem solved Fixes CNCT-2087 <!-- start pr-codex --> --- ## PR-Codex overview This PR enhances the `Layout` component in the `layout.tsx` file by improving the way the ecosystem image URL is resolved using `resolveScheme`, ensuring proper handling of the image source. ### Detailed summary - Added import for `resolveScheme` from `thirdweb/storage`. - Added import for `client` from `../../../lib/client`. - Updated the `src` attribute of the `<img>` tag to use `resolveScheme({ uri: ecosystem.imageUrl, client })` instead of directly using `ecosystem.imageUrl`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 50f98d7 commit 0e26a88

File tree

1 file changed

+3
-1
lines changed
  • apps/wallet-ui/src/app/[ecosystem]/(authed)

1 file changed

+3
-1
lines changed

apps/wallet-ui/src/app/[ecosystem]/(authed)/layout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import ConnectButton from "@/components/ConnectButton";
22
import { authedOnly } from "@/lib/auth";
33
import { getEcosystemInfo } from "@/lib/ecosystems";
4+
import { resolveScheme } from "thirdweb/storage";
5+
import { client } from "../../../lib/client";
46

57
export default async function Layout({
68
children,
@@ -18,7 +20,7 @@ export default async function Layout({
1820
<div className="flex items-center gap-2">
1921
<img
2022
className="h-8 w-8"
21-
src={ecosystem.imageUrl}
23+
src={resolveScheme({ uri: ecosystem.imageUrl, client })}
2224
alt={ecosystem.name}
2325
width={100}
2426
height={100}

0 commit comments

Comments
 (0)