From 4799a32359126d033098b8ef2c9d9e7bd4528d04 Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Tue, 13 Jun 2023 12:04:08 +0300 Subject: [PATCH] Update collection creation tabs --- components/collections/actions/Combobox.tsx | 2 +- pages/collections/create.tsx | 126 +++++++++++--------- 2 files changed, 73 insertions(+), 55 deletions(-) diff --git a/components/collections/actions/Combobox.tsx b/components/collections/actions/Combobox.tsx index d520d6f..733c703 100644 --- a/components/collections/actions/Combobox.tsx +++ b/components/collections/actions/Combobox.tsx @@ -8,7 +8,7 @@ import { FaChevronDown, FaInfoCircle } from 'react-icons/fa' import type { ActionListItem } from './actions' import { BASE_ACTION_LIST, SG721_UPDATABLE_ACTION_LIST, VENDING_ACTION_LIST } from './actions' -export type MinterType = 'base' | 'vending' +export type MinterType = 'base' | 'vending' | 'openEdition' export type Sg721Type = 'updatable' | 'base' export interface ActionsComboboxProps { diff --git a/pages/collections/create.tsx b/pages/collections/create.tsx index 8e41d69..fbc9c6a 100644 --- a/pages/collections/create.tsx +++ b/pages/collections/create.tsx @@ -48,6 +48,7 @@ import { BASE_FACTORY_UPDATABLE_ADDRESS, BLOCK_EXPLORER_URL, NETWORK, + OPEN_EDITION_FACTORY_ADDRESS, SG721_CODE_ID, SG721_UPDATABLE_CODE_ID, STARGAZE_URL, @@ -1289,67 +1290,84 @@ const CollectionCreationPage: NextPage = () => { - {/* To be removed */} - -
- - - {/* /To be removed */} -
+
+
-
{ + setMinterType('vending') + resetReadyFlags() + }} + type="button" > - -
-
- -
+

Standard Collection

+ + A non-appendable collection that facilitates primary market vending machine style minting + +
+
+ +
+ +
+ +
+
- +
{minterType === 'base' && (