Skip to content

Commit

Permalink
Disable iskra crossmint (#396)
Browse files Browse the repository at this point in the history
* fix: disable Iskra crossmint

* fix: remove crossmint in not started bridging flow
  • Loading branch information
AshishYelekar authored Aug 27, 2023
1 parent 9bb0148 commit 92ea603
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 12 additions & 6 deletions src/components/MintDialog/pages/Bridge/NotStarted.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { l1, l2 } from '@/config/chain'
import { useNetwork, useSwitchNetwork } from 'wagmi'
import { ModalPage } from '../../types'
import { useDesiredNetworkContext } from '@/components/DesiredNetworkContext/useDesiredNetworkContext'
import { useMintDialogContext } from '../../Context/useMintDialogContext'

interface NotStartedProps {
amount: string
Expand All @@ -32,6 +33,9 @@ export const NotStarted: FC<NotStartedProps> = ({
const { switchNetwork } = useSwitchNetwork()
const { chain } = useNetwork()
const { setDesiredNetwork, desiredNetwork } = useDesiredNetworkContext()
const {
info: { crossMintClientId },
} = useMintDialogContext()

const wrongChain = chain && chain.id !== l1.id
const wrongDesiredChain = desiredNetwork && desiredNetwork.id !== l1.id
Expand Down Expand Up @@ -118,12 +122,14 @@ export const NotStarted: FC<NotStartedProps> = ({
Bridge now
</Button>
)}
<Button
variant="LIGHT"
onClick={() => setPage(ModalPage.CROSS_MINT_FORM)}
>
Mint with credit card
</Button>
{crossMintClientId && (
<Button
variant="LIGHT"
onClick={() => setPage(ModalPage.CROSS_MINT_FORM)}
>
Mint with credit card
</Button>
)}
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/config/partners/iskra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const iskra: Partner = {
Players are able to build and ‘own’ their team of Clashmons for trading, collecting and fishing (resource farming). The Collectible Battle RPG comes alive with fast-paced RPG-style monster fights and high-stakes tournament rounds, but balances out the pacing with a soothing fishing mode where players can gather resources for gear or pursue other enhancements.`,
address: '0x75ed58e1D029853231A9e9825F0035E0449FBAfa',
crossMintClientId: '521f028e-b728-491a-9336-e2f5a904d3cf',
crossMintClientId: '',
mintType: MintType.ThirdWeb,
type: 'erc-721',
startDate: Date.UTC(2023, 7, 27, CAMPAIGN_HOUR, CAMPAIGN_MINUTE, 0, 0),
Expand Down

0 comments on commit 92ea603

Please sign in to comment.