Skip to content

TokenMetadata: display IPFS image with fallback placeholder #753

@Ejirowebfi

Description

@Ejirowebfi

Description

TokenMetadata.tsx renders the metadata URI as text but does not display the token image. When a valid IPFS image URI is present, it should be rendered.

Tasks

  • Parse the IPFS URI and construct a Pinata gateway URL
  • Render an <img> tag with the gateway URL
  • Show a placeholder icon when the image fails to load or URI is absent
  • Lazy-load the image to avoid blocking the page

Acceptance Criteria

  • Token image is displayed when a valid IPFS URI is set
  • A placeholder icon is shown for tokens without metadata
  • Broken image URLs show the placeholder, not a broken image icon

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions