From 6eaaab0e9d721dc288b0ca1978cd7bc3a5ef15ec Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Tue, 30 Aug 2022 09:29:09 -0600 Subject: [PATCH] Change positioning for large screens --- web/components/contract/contract-overview.tsx | 14 +++++++++++--- web/components/contract/like-market-button.tsx | 8 ++++---- web/components/contract/share-row.tsx | 4 ++++ 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/web/components/contract/contract-overview.tsx b/web/components/contract/contract-overview.tsx index c3d93242..37639d79 100644 --- a/web/components/contract/contract-overview.tsx +++ b/web/components/contract/contract-overview.tsx @@ -46,7 +46,11 @@ export const ContractOverview = (props: { {(outcomeType === 'FREE_RESPONSE' || outcomeType === 'MULTIPLE_CHOICE') && - !resolution && } + !resolution && ( +
+ +
+ )} {isBinary && ( {tradingAllowed(contract) && ( - +
+ +
{!user && ( @@ -94,7 +100,9 @@ export const ContractOverview = (props: { {tradingAllowed(contract) && ( - +
+ +
{!user && ( diff --git a/web/components/contract/like-market-button.tsx b/web/components/contract/like-market-button.tsx index ae3e7c89..f0cb77b0 100644 --- a/web/components/contract/like-market-button.tsx +++ b/web/components/contract/like-market-button.tsx @@ -8,8 +8,8 @@ import toast from 'react-hot-toast' import { formatMoney } from 'common/util/format' import { likeContract, unLikeContract } from 'web/lib/firebase/likes' import { LIKE_TIP_AMOUNT } from 'common/like' -import { Col } from 'web/components/layout/col' import clsx from 'clsx' +import { Row } from 'web/components/layout/row' export function LikeMarketButton(props: { contract: Contract @@ -26,7 +26,6 @@ export function LikeMarketButton(props: { const onLike = async () => { if (likedContractIds?.includes(contract.id)) { await unLikeContract(user.id, contract.id) - toast(`You removed this market from your likes`) return } await likeContract(user, contract) @@ -40,7 +39,7 @@ export function LikeMarketButton(props: { color={'gray-white'} onClick={onLike} > - + - + Tip + ) } diff --git a/web/components/contract/share-row.tsx b/web/components/contract/share-row.tsx index 1af52291..03bd99e6 100644 --- a/web/components/contract/share-row.tsx +++ b/web/components/contract/share-row.tsx @@ -11,6 +11,7 @@ import { CHALLENGES_ENABLED } from 'common/challenge' import { ShareModal } from './share-modal' import { withTracking } from 'web/lib/service/analytics' import { FollowMarketButton } from 'web/components/follow-market-button' +import { LikeMarketButton } from 'web/components/contract/like-market-button' export function ShareRow(props: { contract: Contract @@ -64,6 +65,9 @@ export function ShareRow(props: { )} +
+ +
) }