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 ----- yarn.lock | 291 +++------------------- 3 files changed, 41 insertions(+), 320 deletions(-) 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=0.0.4" -source-map@0.5.x, source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6, source-map@^0.5.7, source-map@~0.5.1: +source-map@0.5.x, source-map@^0.5.3, source-map@^0.5.6, source-map@^0.5.7, source-map@~0.5.1: version "0.5.7" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" @@ -10199,18 +10008,6 @@ svgo@^0.7.0: sax "~1.2.1" whet.extend "~0.9.9" -svgo@~0.6.3: - version "0.6.6" - resolved "https://registry.yarnpkg.com/svgo/-/svgo-0.6.6.tgz#b340889036f20f9b447543077d0f5573ed044c08" - dependencies: - coa "~1.0.1" - colors "~1.1.2" - csso "~2.0.0" - js-yaml "~3.6.0" - mkdirp "~0.5.1" - sax "~1.2.1" - whet.extend "~0.9.9" - swarm-js@0.1.37: version "0.1.37" resolved "https://registry.yarnpkg.com/swarm-js/-/swarm-js-0.1.37.tgz#27d485317a340bbeec40292af783cc10acfa4663" @@ -11026,12 +10823,6 @@ url@^0.11.0: punycode "1.3.2" querystring "0.2.0" -urlencode@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/urlencode/-/urlencode-1.1.0.tgz#1f2ba26f013c85f0133f7a3ad6ff2730adf7cbb7" - dependencies: - iconv-lite "~0.4.11" - use@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/use/-/use-3.1.0.tgz#14716bf03fdfefd03040aef58d8b4b85f3a7c544" @@ -11935,7 +11726,7 @@ yargs@^10.0.3: y18n "^3.2.1" yargs-parser "^8.1.0" -yargs@^4.7.1, yargs@~4.8.0: +yargs@^4.7.1: version "4.8.1" resolved "https://registry.yarnpkg.com/yargs/-/yargs-4.8.1.tgz#c0c42924ca4aaa6b0e6da1739dfb216439f9ddc0" dependencies: -- cgit v1.2.3