From d4af15714c867f7ba25ca9060153907581804497 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Wed, 16 Mar 2022 19:25:39 -0700 Subject: [PATCH] Remove delete button from the UI --- web/components/contract-overview.tsx | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/web/components/contract-overview.tsx b/web/components/contract-overview.tsx index e5ac8bb2..bf2be78d 100644 --- a/web/components/contract-overview.tsx +++ b/web/components/contract-overview.tsx @@ -1,12 +1,7 @@ -import { - Contract, - deleteContract, - tradingAllowed, -} from '../lib/firebase/contracts' +import { Contract, tradingAllowed } from '../lib/firebase/contracts' import { Col } from './layout/col' import { Spacer } from './layout/spacer' import { ContractProbGraph } from './contract-prob-graph' -import router from 'next/router' import { useUser } from '../hooks/use-user' import { Row } from './layout/row' import { Linkify } from './linkify' @@ -110,22 +105,6 @@ export const ContractOverview = (props: { )} - {/* Show a delete button for contracts without any trading */} - {isCreator && bets.length === 0 && ( - <> - - - )} -