diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-06-13 07:54:37 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-06-13 07:54:37 +0800 |
commit | 421e5682329d6047703be926d20a906f6fe2529e (patch) | |
tree | 1ef48d4bda379b41676a9cd91f87766453fdabbe /packages/website/ts/containers/inputs | |
parent | 39692a8b3fd69e5b37e2de568ee74766840ad4b8 (diff) | |
download | dexon-sol-tools-421e5682329d6047703be926d20a906f6fe2529e.tar.gz dexon-sol-tools-421e5682329d6047703be926d20a906f6fe2529e.tar.zst dexon-sol-tools-421e5682329d6047703be926d20a906f6fe2529e.zip |
Implement allowance and final flow step
Diffstat (limited to 'packages/website/ts/containers/inputs')
-rw-r--r-- | packages/website/ts/containers/inputs/allowance_toggle.ts | 7 |
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, }); |