From 5219a63667b4192cb086cad6ed8ddb6285ca1810 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Tue, 13 Sep 2022 22:53:19 -0500 Subject: [PATCH] Extract component for ProbChangeRow --- web/components/contract/prob-change-table.tsx | 41 ++++++++----------- 1 file changed, 17 insertions(+), 24 deletions(-) diff --git a/web/components/contract/prob-change-table.tsx b/web/components/contract/prob-change-table.tsx index 49216b88..47fcf7d2 100644 --- a/web/components/contract/prob-change-table.tsx +++ b/web/components/contract/prob-change-table.tsx @@ -35,40 +35,33 @@ export function ProbChangeTable(props: { {filteredPositiveChanges.map((contract) => ( - - - - {contract.question} - - + ))} {filteredNegativeChanges.map((contract) => ( - - - - {contract.question} - - + ))} ) } +function ProbChangeRow(props: { contract: CPMMContract }) { + const { contract } = props + return ( + + + + {contract.question} + + + ) +} + export function ProbChange(props: { contract: CPMMContract className?: string