From 1b7c7037b8f05a99e840c32504bd14a79957c78d Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Tue, 3 Apr 2018 15:27:45 +0900 Subject: Remove remaining unused deps --- packages/website/ts/globals.d.ts | 3 --- 1 file changed, 3 deletions(-) (limited to 'packages/website/ts') diff --git a/packages/website/ts/globals.d.ts b/packages/website/ts/globals.d.ts index fcf4c2434..2c2140485 100644 --- a/packages/website/ts/globals.d.ts +++ b/packages/website/ts/globals.d.ts @@ -1,12 +1,9 @@ declare module 'react-tooltip'; -declare module 'react-router-hash-link'; declare module 'truffle-contract'; declare module 'keccak'; declare module 'whatwg-fetch'; -declare module 'react-html5video'; declare module 'web3-provider-engine/subproviders/filters'; declare module 'thenby'; -declare module 'react-recaptcha'; declare module 'react-document-title'; declare module 'react-ga'; -- cgit v1.2.3 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/ts/components/token_balances.tsx | 69 ----------------------- 1 file changed, 69 deletions(-) (limited to 'packages/website/ts') 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