From 0844e5620a76df2d0bb65257f3e29ae501269a6a Mon Sep 17 00:00:00 2001 From: mantikoros Date: Sat, 1 Oct 2022 14:30:31 -0500 Subject: [PATCH] create: remove visilbity section --- web/pages/create.tsx | 72 ++++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/web/pages/create.tsx b/web/pages/create.tsx index f5d1c605..03b90d7c 100644 --- a/web/pages/create.tsx +++ b/web/pages/create.tsx @@ -280,25 +280,27 @@ export function NewContract(props: { - { - if (choice === 'FREE_RESPONSE') - setMarketInfoText( - 'Users can submit their own answers to this market.' - ) - else setMarketInfoText('') - setOutcomeType(choice as outcomeType) - }} - choicesMap={{ - 'Yes / No': 'BINARY', - // 'Multiple choice': 'MULTIPLE_CHOICE', - 'Free response': 'FREE_RESPONSE', - // Numeric: 'PSEUDO_NUMERIC', - }} - isSubmitting={isSubmitting} - className={'col-span-4'} - /> + + { + if (choice === 'FREE_RESPONSE') + setMarketInfoText( + 'Users can submit their own answers to this market.' + ) + else setMarketInfoText('') + setOutcomeType(choice as outcomeType) + }} + choicesMap={{ + 'Yes / No': 'BINARY', + // 'Multiple choice': 'MULTIPLE_CHOICE', + 'Free response': 'FREE_RESPONSE', + // Numeric: 'PSEUDO_NUMERIC', + }} + isSubmitting={isSubmitting} + className={'col-span-4'} + /> + {marketInfoText && (
{marketInfoText} @@ -390,23 +392,7 @@ export function NewContract(props: { )} -
- - setVisibility(choice as visibility)} - choicesMap={{ - Public: 'public', - Unlisted: 'unlisted', - }} - isSubmitting={isSubmitting} - /> -
- - + )} + + + Display this market on homepage + + setVisibility(e.target.checked ? 'public' : 'unlisted') + } + /> + +