From 590c63e911340f088907124369868aad6e340410 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Thu, 14 Jul 2022 21:27:00 -0500 Subject: [PATCH] Small fixes for limit order table --- web/components/bets-list.tsx | 18 ++++++++++-------- web/components/limit-bets.tsx | 8 ++++---- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/web/components/bets-list.tsx b/web/components/bets-list.tsx index e57b0c38..db6b0d05 100644 --- a/web/components/bets-list.tsx +++ b/web/components/bets-list.tsx @@ -45,7 +45,7 @@ import { useUnfilledBets } from 'web/hooks/use-bets' import { LimitBet } from 'common/bet' import { floatingEqual } from 'common/util/math' import { Pagination } from './pagination' -import { LimitBets } from './limit-bets' +import { LimitOrderTable } from './limit-bets' type BetSort = 'newest' | 'profit' | 'closeTime' | 'value' type BetFilter = 'open' | 'limit_bet' | 'sold' | 'closed' | 'resolved' | 'all' @@ -364,18 +364,20 @@ function ContractBets(props: { {contract.mechanism === 'cpmm-1' && limitBets.length > 0 && ( <> -
Your limit orders
- +
+
Limit orders
+ +
)} +
Bets
- {!isYou && User} + {!isYou && } Outcome Amount - Prob + {isPseudoNumeric ? 'Value' : 'Prob'} {isYou && }