Skip to content

Commit

Permalink
huh
Browse files Browse the repository at this point in the history
  • Loading branch information
ingawei committed Jul 12, 2024
1 parent bc5de41 commit ee0ba1d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
14 changes: 8 additions & 6 deletions web/components/bet/contract-bets-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,14 @@ export function ContractBetsTable(props: {
))}
</tbody>
</Table>
<Pagination
page={page}
setPage={setPage}
pageSize={betsPerPage}
totalItems={isMultiNumber ? groupedBets.length : normalBets.length}
/>
{paginate && (
<Pagination
page={page}
setPage={setPage}
pageSize={betsPerPage}
totalItems={isMultiNumber ? groupedBets.length : normalBets.length}
/>
)}
</div>
)
}
Expand Down
1 change: 1 addition & 0 deletions web/components/bet/user-bets-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,7 @@ function BetsTable(props: {
contract={contract}
bets={bets}
isYourBets={areYourBets}
paginate
/>
</Col>
))}
Expand Down
4 changes: 2 additions & 2 deletions web/pages/[username]/[contractSlug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ function YourTrades(props: { contract: Contract; yourNewBets: Bet[] }) {
) as LimitBet[]

return (
<Col className="bg-canvas-50 rounded p-4 pb-0">
<Col className="bg-canvas-50 rounded px-3 py-4 pb-0">
{contract.mechanism === 'cpmm-1' && (
<YourOrders
contract={contract}
Expand All @@ -665,7 +665,7 @@ function YourTrades(props: { contract: Contract; yourNewBets: Bet[] }) {

{visibleUserBets.length > 0 && (
<>
<div className="text-ink-700 font-semibold">Your trades</div>
<div className="pl-2 font-semibold">Your trades</div>
<ContractBetsTable
contract={contract}
bets={userBets}
Expand Down

0 comments on commit ee0ba1d

Please sign in to comment.