ipfs / ipld-explorer-components

React components for https://explore.ipld.io and ipfs-webui
Other
24 stars 22 forks source link

feat: StartExploringPage should accept a config for ExploreLinks #415

Closed SgtPooki closed 2 weeks ago

SgtPooki commented 10 months ago

We should allow overriding default explore links in this component, instead of always defaulting to:

https://github.com/ipfs/ipld-explorer-components/blob/edd95a4bd4c12fb55f0815ebbe18847f65f84823/src/components/StartExploringPage.jsx#L35-L77

We should allow consumers to pass their desired links in the format of:

const explorePageLinks = [
  { name: 'Project Apollo Archives', cid: 'QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D' type: 'dag-pb', },
  { name: 'XKCD Archives', cid: 'QmdmQXB2mzChmMeKY47C43LxUdg1NDJ5MWcKMKxDu7RgQm', type: 'dag-pb', },
  // ...
]
<StartExploringPage
  links={explorePageLinks}
/>

Known consumers that will need to update:

KirtanSoni commented 9 months ago

I can do this.. its pretty straightforward

SgtPooki commented 8 months ago

@KirtanSoni that would be amazing =)

ravishxt commented 4 months ago

Can I work on this if this is available ?

SgtPooki commented 4 months ago

@ravishxt please do

SgtPooki commented 2 weeks ago

this is done