Update the condition for displaying sg721-updatable toggle

This commit is contained in:
Serkan Reis 2023-04-01 19:13:21 +03:00
parent 6124826d20
commit e688f86049
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ import { Tooltip } from 'components/Tooltip'
import type { ChangeEvent } from 'react' import type { ChangeEvent } from 'react'
import { useEffect, useRef, useState } from 'react' import { useEffect, useRef, useState } from 'react'
import { toast } from 'react-hot-toast' import { toast } from 'react-hot-toast'
import { SG721_CODE_ID } from 'utils/constants' import { SG721_UPDATABLE_CODE_ID } from 'utils/constants'
import { TextInput } from '../../forms/FormInput' import { TextInput } from '../../forms/FormInput'
import type { MinterType } from '../actions/Combobox' import type { MinterType } from '../actions/Combobox'
@ -245,7 +245,7 @@ export const CollectionDetails = ({ onChange, uploadMethod, coverImageUrl, minte
</div> </div>
</div> </div>
</div> </div>
<Conditional test={SG721_CODE_ID > 0}> <Conditional test={SG721_UPDATABLE_CODE_ID > 0}>
<Tooltip <Tooltip
backgroundColor="bg-blue-500" backgroundColor="bg-blue-500"
label={ label={

View File

@ -280,7 +280,7 @@ export const UploadDetails = ({ onChange, minterType, baseMinterAcquisitionMetho
className="inline-block py-1 px-2 text-gray peer-checked:text-white hover:text-white peer-checked:bg-black peer-checked:border-b-2 hover:border-b-2 peer-checked:border-plumbus hover:border-plumbus cursor-pointer form-check-label" className="inline-block py-1 px-2 text-gray peer-checked:text-white hover:text-white peer-checked:bg-black peer-checked:border-b-2 hover:border-b-2 peer-checked:border-plumbus hover:border-plumbus cursor-pointer form-check-label"
htmlFor="inlineRadio2" htmlFor="inlineRadio2"
> >
{minterType === 'base' ? 'Upload asset & metadata' : 'Upload assets & metadata'} {minterType === 'base' ? 'Upload assets & metadata' : 'Upload assets & metadata'}
</label> </label>
</div> </div>
<div className="mt-3 ml-2 font-bold form-check form-check-inline"> <div className="mt-3 ml-2 font-bold form-check form-check-inline">