Merge pull request #172 from public-awesome/hide-open-edition-on-chain-metadata

Temporarily hide metadata storage options for open edition collection creation
This commit is contained in:
Serkan Reis 2023-06-20 17:13:35 +03:00 committed by GitHub
commit fabc53de42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 43 deletions

View File

@ -11,9 +11,9 @@ NEXT_PUBLIC_VENDING_FACTORY_UPDATABLE_ADDRESS="stars1fnfywcnzzwledr93at65qm8gf95
NEXT_PUBLIC_VENDING_FACTORY_FLEX_ADDRESS="stars1gy6hr9sq9fzrykzw0emmehnjy27agreuepjrfnjnlwlugg29l2qqt0yu2j"
NEXT_PUBLIC_BASE_FACTORY_ADDRESS="stars18kzfpdgx36m95mszchegnk7car4sq03uvg25zeph2j7xg3rk03cs007sxr"
NEXT_PUBLIC_BASE_FACTORY_UPDATABLE_ADDRESS="stars13pw8r33dsnghlxfj2upaywf38z2fc6npuw9maq9e5cpet4v285sscgzjp2"
NEXT_PUBLIC_OPEN_EDITION_FACTORY_ADDRESS="stars1m4fjq0qf3mj6zhplng7yxngp9hq98hd4tj90gjp759l5e0fvf3qqkqzqsf"
NEXT_PUBLIC_OPEN_EDITION_UPDATABLE_FACTORY_ADDRESS="stars1ss39vpz3wfv76nkxpls48srvf58lk57980yatwcjrvvygv9nt8tq5rgslt"
NEXT_PUBLIC_OPEN_EDITION_MINTER_CODE_ID=2570
NEXT_PUBLIC_OPEN_EDITION_FACTORY_ADDRESS="stars1p39ed5jypc2dg8xfdcadsslq0uq8vmx4czeap3j0tty94u9uwe5st4fan7"
NEXT_PUBLIC_OPEN_EDITION_UPDATABLE_FACTORY_ADDRESS="stars1mqrydf565zte4wnzttdg8dlt54hseu4aa2qvm47uxw84khc2uyysh6rnr3"
NEXT_PUBLIC_OPEN_EDITION_MINTER_CODE_ID=2579
NEXT_PUBLIC_SG721_NAME_ADDRESS="stars1fx74nkqkw2748av8j7ew7r3xt9cgjqduwn8m0ur5lhe49uhlsasszc5fhr"
NEXT_PUBLIC_WHITELIST_CODE_ID=2093
NEXT_PUBLIC_WHITELIST_FLEX_CODE_ID=2005

View File

@ -575,48 +575,51 @@ export const OpenEditionMinterCreator = ({
return (
<div>
<div className="mx-10 mb-4 rounded border-2 border-white/20">
<div className="flex justify-center mb-2">
<div className="mt-3 ml-4 font-bold form-check form-check-inline">
<input
checked={metadataStorageMethod === 'off-chain'}
className="peer sr-only"
id="inlineRadio9"
name="inlineRadioOptions9"
onClick={() => {
setMetadataStorageMethod('off-chain')
}}
type="radio"
value="Off Chain"
/>
<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="inlineRadio9"
>
Off-Chain Metadata
</label>
</div>
<div className="mt-3 ml-2 font-bold form-check form-check-inline">
<input
checked={metadataStorageMethod === 'on-chain'}
className="peer sr-only"
id="inlineRadio10"
name="inlineRadioOptions10"
onClick={() => {
setMetadataStorageMethod('on-chain')
}}
type="radio"
value="On Chain"
/>
<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="inlineRadio10"
>
On-Chain Metadata
</label>
{/* TODO: Cancel once we're able to index on-chain metadata */}
<Conditional test={false}>
<div className="mx-10 mb-4 rounded border-2 border-white/20">
<div className="flex justify-center mb-2">
<div className="mt-3 ml-4 font-bold form-check form-check-inline">
<input
checked={metadataStorageMethod === 'off-chain'}
className="peer sr-only"
id="inlineRadio9"
name="inlineRadioOptions9"
onClick={() => {
setMetadataStorageMethod('off-chain')
}}
type="radio"
value="Off Chain"
/>
<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="inlineRadio9"
>
Off-Chain Metadata
</label>
</div>
<div className="mt-3 ml-2 font-bold form-check form-check-inline">
<input
checked={metadataStorageMethod === 'on-chain'}
className="peer sr-only"
id="inlineRadio10"
name="inlineRadioOptions10"
onClick={() => {
setMetadataStorageMethod('on-chain')
}}
type="radio"
value="On Chain"
/>
<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="inlineRadio10"
>
On-Chain Metadata
</label>
</div>
</div>
</div>
</div>
</Conditional>
<div className={clsx('my-4 mx-10')}>
<Conditional test={metadataStorageMethod === 'off-chain'}>
<div>