From 9209b3cb05ea8914dd250a65badc7fb568043bf2 Mon Sep 17 00:00:00 2001 From: jahooma Date: Sat, 15 Jan 2022 17:28:32 -0600 Subject: [PATCH 1/2] Fix nested tag --- web/components/contract-card.tsx | 33 ++++++++++++++++---------------- web/components/user-page.tsx | 3 ++- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/web/components/contract-card.tsx b/web/components/contract-card.tsx index 7aaaee16..3e39d1c7 100644 --- a/web/components/contract-card.tsx +++ b/web/components/contract-card.tsx @@ -24,25 +24,24 @@ export function ContractCard(props: { const { probPercent } = contractMetrics(contract) return ( -
+
- -
- -

{question}

- -
- -
-
+ + +

{question}

+ +
+
) } diff --git a/web/components/user-page.tsx b/web/components/user-page.tsx index 0a27fae6..f75dcf7e 100644 --- a/web/components/user-page.tsx +++ b/web/components/user-page.tsx @@ -1,3 +1,4 @@ +import clsx from 'clsx' import { firebaseLogout, User } from '../lib/firebase/users' import { CreatorContractsList } from './contracts-list' import { Title } from './title' @@ -16,7 +17,7 @@ export function UserLink(props: { const { name, username, showUsername, className } = props return ( - + {name} {showUsername && ` (@${username})`} From 1aa88a917bb3566e919e13356e98c55ea8ede74e Mon Sep 17 00:00:00 2001 From: jahooma Date: Sat, 15 Jan 2022 17:29:38 -0600 Subject: [PATCH 2/2] Fix missing key --- web/pages/activity.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pages/activity.tsx b/web/pages/activity.tsx index d331cdf4..44f33617 100644 --- a/web/pages/activity.tsx +++ b/web/pages/activity.tsx @@ -82,7 +82,7 @@ export function ActivityFeed(props: { <Col className="w-full bg-white self-center divide-gray-300 divide-y"> {activeContracts.map((contract, i) => ( - <div className="py-6 px-2 sm:px-4"> + <div key={contract.id} className="py-6 px-2 sm:px-4"> <ContractFeed contract={contract} bets={contractBets[i]}