From 6a6eddb1d78213cdd96bcce77e28c4f3f88d7382 Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Fri, 23 Sep 2022 20:36:34 +0300 Subject: [PATCH] Fetch My Collections from the API --- pages/collections/create.tsx | 34 +++++++++--- pages/collections/myCollections.tsx | 80 ++++++++++++++--------------- utils/constants.ts | 1 + 3 files changed, 66 insertions(+), 49 deletions(-) diff --git a/pages/collections/create.tsx b/pages/collections/create.tsx index 5bd65da..4d5be3f 100644 --- a/pages/collections/create.tsx +++ b/pages/collections/create.tsx @@ -29,7 +29,14 @@ import { useEffect, useRef, useState } from 'react' import { toast } from 'react-hot-toast' import { upload } from 'services/upload' import { compareFileArrays } from 'utils/compareFileArrays' -import { MINTER_CODE_ID, SG721_CODE_ID, STARGAZE_URL, WHITELIST_CODE_ID } from 'utils/constants' +import { + BLOCK_EXPLORER_URL, + MINTER_CODE_ID, + NETWORK, + SG721_CODE_ID, + STARGAZE_URL, + WHITELIST_CODE_ID, +} from 'utils/constants' import { withMetadata } from 'utils/layout' import { links } from 'utils/links' @@ -472,13 +479,24 @@ const CollectionCreationPage: NextPage = () => {
Transaction Hash: {' '} - - {transactionHash} - + + + {transactionHash} + + + + + {transactionHash} + +