Merge branch 'v2-prototype' of https://github.com/0xProject/0x-monorepo into feature/website/onboarding-flow-allowances
This commit is contained in:
@@ -5,7 +5,7 @@ import {
|
||||
Styles,
|
||||
utils as sharedUtils,
|
||||
} from '@0xproject/react-shared';
|
||||
import { BigNumber, logUtils } from '@0xproject/utils';
|
||||
import { BigNumber, errorUtils, logUtils } from '@0xproject/utils';
|
||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
||||
import * as _ from 'lodash';
|
||||
import Dialog from 'material-ui/Dialog';
|
||||
@@ -497,7 +497,7 @@ export class TokenBalances extends React.Component<TokenBalancesProps, TokenBala
|
||||
return null; // No error to show
|
||||
|
||||
default:
|
||||
throw utils.spawnSwitchErr('errorType', this.state.errorType);
|
||||
throw errorUtils.spawnSwitchErr('errorType', this.state.errorType);
|
||||
}
|
||||
}
|
||||
private _onErrorOccurred(errorType: BalanceErrs): void {
|
||||
@@ -578,7 +578,7 @@ export class TokenBalances extends React.Component<TokenBalancesProps, TokenBala
|
||||
}
|
||||
return true;
|
||||
}
|
||||
private _onErrorDialogToggle(isOpen: boolean): void {
|
||||
private _onErrorDialogToggle(_isOpen: boolean): void {
|
||||
this.setState({
|
||||
errorType: undefined,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user