From ce89d7e92d471cd57c08830ec5bb7e1d02694624 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Thu, 5 Dec 2019 19:50:12 +0100 Subject: [PATCH] Revert "Remove contracts call functionality (not working) (#1999)" (#2004) This reverts commit 0aacf3a09d060ceb4ba76135e166e4c8f81f18f9. --- .../app-contracts/src/Contracts/Contract.tsx | 20 ++-- .../app-contracts/src/Contracts/index.tsx | 93 ++++++++++--------- 2 files changed, 57 insertions(+), 56 deletions(-) diff --git a/packages/app-contracts/src/Contracts/Contract.tsx b/packages/app-contracts/src/Contracts/Contract.tsx index dfd4105226b..8cdfba65b43 100644 --- a/packages/app-contracts/src/Contracts/Contract.tsx +++ b/packages/app-contracts/src/Contracts/Contract.tsx @@ -18,7 +18,7 @@ import translate from '../translate'; interface Props extends I18nProps, RouteComponentProps { basePath: string; contract: ApiContract; - onCall?: (_?: number) => () => void; + onCall: (_?: number) => () => void; } const ContractCard = styled(Card)` @@ -82,16 +82,14 @@ function Contract (props: Props): React.ReactElement | null { size='small' tooltip={t('Forget this contract')} /> - {onCall && ( -