From 7c8b33597ae6cd7566cc05782bfb9097e405e8dd Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Wed, 31 Aug 2022 14:33:24 -0700 Subject: [PATCH] Add "Duplicate Contract" into "..." menu --- web/components/contract/contract-info-dialog.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/components/contract/contract-info-dialog.tsx b/web/components/contract/contract-info-dialog.tsx index aaa3cad6..f376a04a 100644 --- a/web/components/contract/contract-info-dialog.tsx +++ b/web/components/contract/contract-info-dialog.tsx @@ -16,6 +16,8 @@ import { SiteLink } from '../site-link' import { firestoreConsolePath } from 'common/envs/constants' import { deleteField } from 'firebase/firestore' import ShortToggle from '../widgets/short-toggle' +import { DuplicateContractButton } from '../copy-contract-button' +import { Row } from '../layout/row' export const contractDetailsButtonClassName = 'group flex items-center rounded-md px-3 py-2 text-sm font-medium cursor-pointer hover:bg-gray-100 text-gray-400 hover:text-gray-500' @@ -185,6 +187,9 @@ export function ContractInfoDialog(props: { + + + {contract.mechanism === 'cpmm-1' && !contract.resolution && ( )}