aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/containers
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-06-13 07:54:37 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-06-13 07:54:37 +0800
commit421e5682329d6047703be926d20a906f6fe2529e (patch)
tree1ef48d4bda379b41676a9cd91f87766453fdabbe /packages/website/ts/containers
parent39692a8b3fd69e5b37e2de568ee74766840ad4b8 (diff)
downloaddexon-sol-tools-421e5682329d6047703be926d20a906f6fe2529e.tar
dexon-sol-tools-421e5682329d6047703be926d20a906f6fe2529e.tar.gz
dexon-sol-tools-421e5682329d6047703be926d20a906f6fe2529e.tar.bz2
dexon-sol-tools-421e5682329d6047703be926d20a906f6fe2529e.tar.lz
dexon-sol-tools-421e5682329d6047703be926d20a906f6fe2529e.tar.xz
dexon-sol-tools-421e5682329d6047703be926d20a906f6fe2529e.tar.zst
dexon-sol-tools-421e5682329d6047703be926d20a906f6fe2529e.zip
Implement allowance and final flow step
Diffstat (limited to 'packages/website/ts/containers')
-rw-r--r--packages/website/ts/containers/inputs/allowance_toggle.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/website/ts/containers/inputs/allowance_toggle.ts b/packages/website/ts/containers/inputs/allowance_toggle.ts
index 6f50072ca..545708f92 100644
--- a/packages/website/ts/containers/inputs/allowance_toggle.ts
+++ b/packages/website/ts/containers/inputs/allowance_toggle.ts
@@ -1,10 +1,9 @@
import * as React from 'react';
-import { BalanceErrs, Token, TokenState } from 'ts/types';
-import { ActionTypes, ProviderType, TokenByAddress, TokenStateByAddress } from 'ts/types';
import { connect } from 'react-redux';
import { Dispatch } from 'redux';
import { Blockchain } from 'ts/blockchain';
import { State } from 'ts/redux/reducer';
+import { BalanceErrs, Token, TokenState } from 'ts/types';
import { AllowanceToggle as AllowanceToggleComponent } from 'ts/components/inputs/allowance_toggle';
import { Dispatcher } from 'ts/redux/dispatcher';
@@ -15,7 +14,7 @@ interface AllowanceToggleProps {
token: Token;
tokenState: TokenState;
isDisabled?: boolean;
- refetchTokenStateAsync: (tokenAddress: string) => Promise<void>;
+ refetchTokenStateAsync: () => Promise<void>;
}
interface ConnectedState {
@@ -27,7 +26,7 @@ interface ConnectedDispatch {
dispatcher: Dispatcher;
}
-const mapStateToProps = (state: State, ownProps: AllowanceToggleProps): ConnectedState => ({
+const mapStateToProps = (state: State, _ownProps: AllowanceToggleProps): ConnectedState => ({
networkId: state.networkId,
userAddress: state.userAddress,
});