-
I'm currently finish Lesson 15 and successfully build the UI for my NFT Marketplace, using The Graph solely. But when I rewatch Patrick's trailer about the NFT Marketplace at the beginning of Lesson 15 (23:40:20), I found that the This is the difference:
Here's my repo: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Challenge yourself, you can do it. |
Beta Was this translation helpful? Give feedback.
-
We will change Typescript to Javascript export interface UpdateListingModalProps {
isVisible: boolean
onClose: () => void
nftMarketplaceAbi: object
marketplaceAddress: string
nftAddress: string
tokenId: string
imageURI: string | undefined
currentPrice: number | undefined
}
const UpdateListingModal = ({
isVisible,
onClose,
nftMarketplaceAbi,
marketplaceAddress,
nftAddress,
tokenId,
imageURI,
currentPrice,
}: UpdateListingModalProps) => { change to this function UpdateListingModal({
isVisible,
onClose,
nftMarketplaceAbi,
marketplaceAddress,
nftAddress,
tokenId,
imageURI,
currentPrice,
}) { and change this const [priceToUpdateListingWith, setPriceToUpdateListingWith] = useState<string | undefined>() to this const [priceToUpdateListingWith, setPriceToUpdateListingWith] = useState("") and rename |
Beta Was this translation helpful? Give feedback.
We will change Typescript to Javascript
first instead of this
change to this