Skip to content

Commit

Permalink
Fix minting (#72)
Browse files Browse the repository at this point in the history
* clean up isPending prop

* Use the correct abi for nft minting
  • Loading branch information
corbanbrook authored May 29, 2024
1 parent aa45667 commit 002a428
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions examples/next/src/app/components/Connected.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ import { isDebugMode } from '../../config'

import { Header } from './Header'

import { abi, messageToSign } from '@/constants'
import { messageToSign } from '@/constants'
import { abi } from '@/constants/nft-abi'

export const Connected = () => {
const { address } = useAccount()
Expand Down Expand Up @@ -418,7 +419,7 @@ interface CardButtonProps {
}

const CardButton = (props: CardButtonProps) => {
const { title, description, onClick } = props
const { title, description, onClick, isPending } = props

return (
<Card clickable onClick={onClick}>
Expand All @@ -429,7 +430,7 @@ const CardButton = (props: CardButtonProps) => {
{description}
</Text>

{props.isPending && (
{isPending && (
<Box gap="2" alignItems="center" marginTop="4">
<Spinner />
<Text variant="small" color="text50">
Expand Down
7 changes: 4 additions & 3 deletions examples/react/src/components/Connected.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ import {
useWriteContract
} from 'wagmi'

import { messageToSign, abi } from '../constants'
import { messageToSign } from '../constants'
import { abi } from '../constants/nft-abi'
import { delay, getCheckoutSettings } from '../utils'

import { Header } from './Header'
Expand Down Expand Up @@ -588,7 +589,7 @@ interface CardButtonProps {
}

const CardButton = (props: CardButtonProps) => {
const { title, description, onClick } = props
const { title, description, onClick, isPending } = props

return (
<Card clickable onClick={onClick}>
Expand All @@ -599,7 +600,7 @@ const CardButton = (props: CardButtonProps) => {
{description}
</Text>

{props.isPending && (
{isPending && (
<Box gap="2" alignItems="center" marginTop="4">
<Spinner size="sm" />
<Text variant="small" color="text50">
Expand Down

0 comments on commit 002a428

Please sign in to comment.