From 071259d32b2140c7fb3d258df00bae95f3e561dd Mon Sep 17 00:00:00 2001 From: Gabriela del Pilar Rojas Date: Thu, 18 Apr 2024 23:22:34 -0500 Subject: [PATCH] challenge0 ui --- packages/nextjs/app/ipfsDownload/page.tsx | 9 ++++---- packages/nextjs/app/ipfsUpload/page.tsx | 7 +++--- packages/nextjs/app/myNFTs/page.tsx | 2 +- packages/nextjs/components/Footer.tsx | 22 +++++++++---------- .../nextjs/components/SimpleNFT/NFTcard.tsx | 6 ++--- 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/packages/nextjs/app/ipfsDownload/page.tsx b/packages/nextjs/app/ipfsDownload/page.tsx index 32abf59b..0188f1f2 100644 --- a/packages/nextjs/app/ipfsDownload/page.tsx +++ b/packages/nextjs/app/ipfsDownload/page.tsx @@ -3,6 +3,7 @@ import { lazy, useEffect, useState } from "react"; import type { NextPage } from "next"; import { notification } from "~~/utils/scaffold-stark/notification"; +import ButtonStyle from "~~/components/ButtonStyle/ButtonStyle"; // import { getMetadataFromIPFS } from "~~/utils/simpleNFT/ipfs-fetch"; const LazyReactJson = lazy(() => import("react-json-view")); @@ -49,13 +50,13 @@ const IpfsDownload: NextPage = () => { autoComplete="off" /> - + {mounted && ( import("react-json-view")); @@ -59,13 +60,11 @@ const IpfsUpload: NextPage = () => { }} /> )} - + {/* {uploadedIpfsPath && (
diff --git a/packages/nextjs/app/myNFTs/page.tsx b/packages/nextjs/app/myNFTs/page.tsx index a4fdd767..28acb85a 100644 --- a/packages/nextjs/app/myNFTs/page.tsx +++ b/packages/nextjs/app/myNFTs/page.tsx @@ -5,7 +5,7 @@ function Page() { return (
-

My NFTs

+

My NFTs

Mint NFT
diff --git a/packages/nextjs/components/Footer.tsx b/packages/nextjs/components/Footer.tsx index 96641f33..11125876 100644 --- a/packages/nextjs/components/Footer.tsx +++ b/packages/nextjs/components/Footer.tsx @@ -8,26 +8,26 @@ import { import { HeartIcon } from "@heroicons/react/24/outline"; import { SwitchTheme } from "~~/components/SwitchTheme"; import { BuidlGuidlLogo } from "~~/components/assets/BuidlGuidlLogo"; -// import { FaucetMenu } from "~~/components/FaucetMenu"; -// import { useTargetNetwork } from "~~/hooks/scaffold-eth/useTargetNetwork"; + import FaucetMenu from "~~/components/FaucetMenu"; + import { useTargetNetwork } from "~~/hooks/scaffold-stark/useTargetNetwork"; import { useGlobalState } from "~~/services/store/store"; /** * Site footer */ export const Footer = () => { - // const nativeCurrencyPrice = useGlobalState( - // (state) => state.nativeCurrencyPrice - // ); - // const { targetNetwork } = useTargetNetwork(); - // const isLocalNetwork = false; + const nativeCurrencyPrice = useGlobalState( + (state) => state.nativeCurrencyPrice + ); + const { targetNetwork } = useTargetNetwork(); + const isLocalNetwork = false; return (
- {/* {nativeCurrencyPrice > 0 && ( + {nativeCurrencyPrice > 0 && (
@@ -47,13 +47,13 @@ export const Footer = () => { Block Explorer - )} */} + )}
- {/* */} + />
diff --git a/packages/nextjs/components/SimpleNFT/NFTcard.tsx b/packages/nextjs/components/SimpleNFT/NFTcard.tsx index ac61f919..6b25047c 100644 --- a/packages/nextjs/components/SimpleNFT/NFTcard.tsx +++ b/packages/nextjs/components/SimpleNFT/NFTcard.tsx @@ -1,5 +1,6 @@ import { useState } from "react"; import { NFTMetaData } from "~~/utils/scaffold-stark/simpleNFT/nftsMetadata"; +import ButtonStyle from "../ButtonStyle/ButtonStyle"; export const NFTCard = ({ nft }:any) => { @@ -39,11 +40,10 @@ export const NFTCard = ({ nft }:any) => { /> */}
- +