From 03e42057007d3075e451d7cea92968b4c6514e31 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Tue, 3 Apr 2018 15:39:43 +0900 Subject: Remove Dharma integration from Website --- packages/website/package.json | 1 - packages/website/ts/components/token_balances.tsx | 69 ----------------------- 2 files changed, 70 deletions(-) (limited to 'packages') diff --git a/packages/website/package.json b/packages/website/package.json index 4cbd61633..7d0c68b47 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -29,7 +29,6 @@ "basscss": "^8.0.3", "blockies": "^0.0.2", "deep-equal": "^1.0.1", - "dharma-loan-frame": "^0.0.12", "ethereumjs-util": "^5.1.1", "find-versions": "^2.0.0", "jsonschema": "^1.2.0", diff --git a/packages/website/ts/components/token_balances.tsx b/packages/website/ts/components/token_balances.tsx index b4a710ef4..618b5fe8f 100644 --- a/packages/website/ts/components/token_balances.tsx +++ b/packages/website/ts/components/token_balances.tsx @@ -8,7 +8,6 @@ import { utils as sharedUtils, } from '@0xproject/react-shared'; import { BigNumber, logUtils } from '@0xproject/utils'; -import DharmaLoanFrame from 'dharma-loan-frame'; import * as _ from 'lodash'; import Dialog from 'material-ui/Dialog'; import Divider from 'material-ui/Divider'; @@ -79,7 +78,6 @@ interface TokenBalancesProps { interface TokenBalancesState { errorType: BalanceErrs; isBalanceSpinnerVisible: boolean; - isDharmaDialogVisible: boolean; isZRXSpinnerVisible: boolean; isTokenPickerOpen: boolean; isAddingToken: boolean; @@ -96,7 +94,6 @@ export class TokenBalances extends React.Component, ]; - const dharmaDialogActions = [ - , - ]; const isTestNetwork = utils.isTestNetwork(this.props.networkId); const isKovanTestNetwork = this.props.networkId === constants.NETWORK_ID_KOVAN; - const dharmaButtonColumnStyle = { - paddingLeft: 3, - display: isKovanTestNetwork ? 'table-cell' : 'none', - }; const stubColumnStyle = { display: isTestNetwork ? 'none' : 'table-cell', }; @@ -190,11 +175,6 @@ export class TokenBalances extends React.Component \ - you can request a loan from the Dharma Loan
\ - network. Your loan should be funded in 5
\ - minutes or less.'; const allowanceExplanation = '0x smart contracts require access to your
\ token balances in order to execute trades.
\ @@ -226,12 +206,6 @@ export class TokenBalances extends React.Component )} - {isKovanTestNetwork && ( - - {isSmallScreen ? 'Loan' : 'Request Dharma loan'} - - - )} @@ -258,15 +232,6 @@ export class TokenBalances extends React.Component )} - {isKovanTestNetwork && ( - - - - )} @@ -315,17 +280,6 @@ export class TokenBalances extends React.Component {this._renderErrorDialogBody()} - - {this._renderDharmaLoanFrame()} - - We apologize -- Dharma loan requests are not available on mobile yet. Please try again through your - desktop browser. - - ); - } else { - return ( - - ); - } - } private _onErrorOccurred(errorType: BalanceErrs) { this.setState({ errorType, @@ -646,11 +582,6 @@ export class TokenBalances extends React.Component