Closed sekaiking closed 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/6W6TgXzJYwKuJXi9QaV6w57xzTWj
✅ Preview: https://frontend-git-removehooksfromcomponents-curaos.vercel.app
:tada: This PR is included in version @cura/components-v1.0.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
closes #143
MediaObject
useNFTContentType
withtype
prop which will be provided from parentsText
sub-component now usesmediaURI
as the text content because it doesn't need a URI and adding more props doesn't seem neccessaryiframe
the fallback, so iftype
is not provided or unknown, we'll display media usingiframe
because it can handle all type of media.MediaObject Story
MediaObject.stories.tsx
that was excluded because hooks inside it were causing problems. Now solved.type
toMediaObject.stories.tsx
and changed text mediaURI to the actual textFrontend
html
and the default forMediaObject
isiframe
NFTE
NFTE
can display all types of NFTs so I useuseNFTContentType
to determine the media type to show