diff --git a/web/components/bets-list.tsx b/web/components/bets-list.tsx
index 05ac6dce..c5decd55 100644
--- a/web/components/bets-list.tsx
+++ b/web/components/bets-list.tsx
@@ -3,6 +3,7 @@ import { groupBy, mapValues, sortBy, partition, sumBy } from 'lodash'
import dayjs from 'dayjs'
import { useEffect, useMemo, useState } from 'react'
import clsx from 'clsx'
+import { ChevronDownIcon, ChevronUpIcon } from '@heroicons/react/solid'
import { Bet } from 'web/lib/firebase/bets'
import { User } from 'web/lib/firebase/users'
@@ -277,13 +278,7 @@ function ContractBets(props: {
bets
)
return (
-
+
setCollapsed((collapsed) => !collapsed)}
@@ -300,10 +295,11 @@ function ContractBets(props: {
{/* Show carrot for collapsing. Hack the positioning. */}
-
+ {collapsed ? (
+
+ ) : (
+
+ )}
@@ -335,7 +331,7 @@ function ContractBets(props: {
-
+
{formatMoney(metric === 'profit' ? profit : payout)}
@@ -343,35 +339,34 @@ function ContractBets(props: {
-
-
+ {!collapsed && (
+
+
- {contract.mechanism === 'cpmm-1' && limitBets.length > 0 && (
-
- )}
+ {contract.mechanism === 'cpmm-1' && limitBets.length > 0 && (
+
+ )}
-
Bets
-
-
+
Bets
+
+
+ )}
)
}
@@ -468,7 +463,6 @@ export function BetsSummary(props: {
{formatMoney(payout)}
)}
- )
Profit