From e38181ce3f61a2a93b291f4c51dfb5f2a9b6534c Mon Sep 17 00:00:00 2001 From: ingawei Date: Mon, 16 Sep 2024 10:14:20 -0700 Subject: [PATCH 1/2] heirarchy --- common/src/envs/constants.ts | 2 +- web/components/contract/contract-details.tsx | 5 +- .../contract/twomba-contract-page.tsx | 59 ++++++++----------- 3 files changed, 27 insertions(+), 39 deletions(-) diff --git a/common/src/envs/constants.ts b/common/src/envs/constants.ts index dacb9f0b75..ac64dbfe9a 100644 --- a/common/src/envs/constants.ts +++ b/common/src/envs/constants.ts @@ -11,7 +11,7 @@ export const CONFIGS: { [env: string]: EnvConfig } = { DEV: DEV_CONFIG, } -export const TWOMBA_ENABLED = false +export const TWOMBA_ENABLED = true export const PRODUCT_MARKET_FIT_ENABLED = false export const SPICE_PRODUCTION_ENABLED = true export const SPICE_TO_MANA_CONVERSION_RATE = 1 diff --git a/web/components/contract/contract-details.tsx b/web/components/contract/contract-details.tsx index def1e2aa19..9f7e238052 100644 --- a/web/components/contract/contract-details.tsx +++ b/web/components/contract/contract-details.tsx @@ -25,8 +25,9 @@ export function AuthorInfo(props: { contract: Contract resolverId?: string // live updated className?: string + userNameClass?: string }) { - const { contract, resolverId, className } = props + const { contract, resolverId, className, userNameClass } = props const { creatorId, creatorName, creatorUsername, creatorAvatarUrl } = contract const resolver = useDisplayUserById(resolverId) return ( @@ -38,7 +39,7 @@ export function AuthorInfo(props: { size={'xs'} /> - +
-
- - - -
+ + -
+ - {showRelatedMarketsBelowBet && ( - - )} {showReview && user && (
+ + + + {!user && } {!!user && ( @@ -455,19 +448,7 @@ export function TwombaContractPageContent(props: ContractParams) { contract={props.contract} /> )} - {showExplainerPanel && ( -
-

What is this?

- -
- )} - {comments.length > 3 && ( - - )} + {isResolved && resolution !== 'CANCEL' && ( <>
+ {showExplainerPanel && ( +
+

What is this?

+ +
+ )} Date: Mon, 16 Sep 2024 10:15:01 -0700 Subject: [PATCH 2/2] no true --- common/src/envs/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/envs/constants.ts b/common/src/envs/constants.ts index ac64dbfe9a..dacb9f0b75 100644 --- a/common/src/envs/constants.ts +++ b/common/src/envs/constants.ts @@ -11,7 +11,7 @@ export const CONFIGS: { [env: string]: EnvConfig } = { DEV: DEV_CONFIG, } -export const TWOMBA_ENABLED = true +export const TWOMBA_ENABLED = false export const PRODUCT_MARKET_FIT_ENABLED = false export const SPICE_PRODUCTION_ENABLED = true export const SPICE_TO_MANA_CONVERSION_RATE = 1