curaOS / source

Start a solid foundation of tools for creators+builders.
https://cura.run
15 stars 13 forks source link

New NFTE component and hooks update #99

Closed sekaiking closed 2 years ago

sekaiking commented 2 years ago

Summary of the PR

The Goal

building an NFTE component, that relies on @cura/hooks and @cura/components

What and why?

hooks

NFT data is scattered on-chain and off-chain. That's why having new hooks that takes care of fetching data would make it look cleaner and it would also be reusable in new projects.

The new hooks are:

Also, some changes has been done:

And some notes:

components

the NFTE component rely on other components and mainly MediaObject and Metadata which are used to display the data that we fetched using hooks then processed inside the NFTE

The new components are:

Other changes:

Notes about NFTE:

frontend

All edits in the frontend are just to match hooks and components updates.

Github workflow

hooks test has been added to Github workflow

vercel[bot] commented 2 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/curaos/frontend/7eEypfnJvTtpRvFB6ePMDNmSCVY3
✅ Preview: https://frontend-git-componentshooks-curaos.vercel.app