File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
apps/www/registry/default/ui Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,28 @@ const NftCard = async ({
44
44
...props
45
45
} : NftCardProps ) => {
46
46
const [ nftData , setNftData ] = useState < any > ( null )
47
+
47
48
const umi = createUmi ( process . env . NEXT_PUBLIC_QUICKNODE ! ) . use (
48
49
mplTokenMetadata ( )
49
50
)
50
51
51
52
useEffect ( ( ) => {
52
53
const fetchNftData = async ( ) => {
53
54
const nftData = await fetchDigitalAsset ( umi , publicKey ( mintAddress ) )
54
- setNftData ( nftData )
55
+ const uriData = await fetch (
56
+ "https://madlads.s3.us-west-2.amazonaws.com/json/1976.json" ,
57
+ {
58
+ method : "GET" ,
59
+ headers : {
60
+ Accept : "*/*" ,
61
+ } ,
62
+ }
63
+ )
64
+ const jsonUriData = await uriData . json ( )
65
+ setNftData ( {
66
+ nft : nftData ,
67
+ uriData : jsonUriData ,
68
+ } )
55
69
}
56
70
fetchNftData ( )
57
71
} , [ ] )
You can’t perform that action at this time.
0 commit comments