aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/redux/dispatcher.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-12-22 22:05:32 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-03 18:37:38 +0800
commite744e4cd989bd3ae1070c59f7baa8097f18b8b06 (patch)
treea7fde03873f3c1b8689d3991edbb362f8022e5f0 /packages/website/ts/redux/dispatcher.ts
parent9a96e8c704b6f84e00bbe848159a4819844cf09d (diff)
downloaddexon-sol-tools-e744e4cd989bd3ae1070c59f7baa8097f18b8b06.tar.gz
dexon-sol-tools-e744e4cd989bd3ae1070c59f7baa8097f18b8b06.tar.zst
dexon-sol-tools-e744e4cd989bd3ae1070c59f7baa8097f18b8b06.zip
Apply prettier config
Diffstat (limited to 'packages/website/ts/redux/dispatcher.ts')
-rw-r--r--packages/website/ts/redux/dispatcher.ts66
1 files changed, 33 insertions, 33 deletions
diff --git a/packages/website/ts/redux/dispatcher.ts b/packages/website/ts/redux/dispatcher.ts
index 0723fae30..184ef0a05 100644
--- a/packages/website/ts/redux/dispatcher.ts
+++ b/packages/website/ts/redux/dispatcher.ts
@@ -1,6 +1,6 @@
import BigNumber from 'bignumber.js';
-import {Dispatch} from 'redux';
-import {State} from 'ts/redux/reducer';
+import { Dispatch } from 'redux';
+import { State } from 'ts/redux/reducer';
import {
ActionTypes,
AssetToken,
@@ -98,44 +98,44 @@ export class Dispatcher {
}
public encounteredBlockchainError(err: BlockchainErrs) {
this._dispatch({
- data: err,
- type: ActionTypes.BlockchainErrEncountered,
- });
+ data: err,
+ type: ActionTypes.BlockchainErrEncountered,
+ });
}
public updateBlockchainIsLoaded(isLoaded: boolean) {
this._dispatch({
- data: isLoaded,
- type: ActionTypes.UpdateBlockchainIsLoaded,
- });
+ data: isLoaded,
+ type: ActionTypes.UpdateBlockchainIsLoaded,
+ });
}
public addTokenToTokenByAddress(token: Token) {
this._dispatch({
- data: token,
- type: ActionTypes.AddTokenToTokenByAddress,
- });
+ data: token,
+ type: ActionTypes.AddTokenToTokenByAddress,
+ });
}
public removeTokenToTokenByAddress(token: Token) {
this._dispatch({
- data: token,
- type: ActionTypes.RemoveTokenFromTokenByAddress,
- });
+ data: token,
+ type: ActionTypes.RemoveTokenFromTokenByAddress,
+ });
}
public clearTokenByAddress() {
this._dispatch({
type: ActionTypes.ClearTokenByAddress,
- });
+ });
}
public updateTokenByAddress(tokens: Token[]) {
this._dispatch({
- data: tokens,
- type: ActionTypes.UpdateTokenByAddress,
- });
+ data: tokens,
+ type: ActionTypes.UpdateTokenByAddress,
+ });
}
public updateTokenStateByAddress(tokenStateByAddress: TokenStateByAddress) {
this._dispatch({
- data: tokenStateByAddress,
- type: ActionTypes.UpdateTokenStateByAddress,
- });
+ data: tokenStateByAddress,
+ type: ActionTypes.UpdateTokenStateByAddress,
+ });
}
public removeFromTokenStateByAddress(tokenAddress: string) {
this._dispatch({
@@ -146,8 +146,8 @@ export class Dispatcher {
public replaceTokenAllowanceByAddress(address: string, allowance: BigNumber) {
this._dispatch({
data: {
- address,
- allowance,
+ address,
+ allowance,
},
type: ActionTypes.ReplaceTokenAllowanceByAddress,
});
@@ -172,21 +172,21 @@ export class Dispatcher {
}
public updateSignatureData(signatureData: SignatureData) {
this._dispatch({
- data: signatureData,
- type: ActionTypes.UpdateOrderSignatureData,
- });
+ data: signatureData,
+ type: ActionTypes.UpdateOrderSignatureData,
+ });
}
public updateUserEtherBalance(balance: BigNumber) {
this._dispatch({
- data: balance,
- type: ActionTypes.UpdateUserEtherBalance,
- });
+ data: balance,
+ type: ActionTypes.UpdateUserEtherBalance,
+ });
}
public updateNetworkId(networkId: number) {
this._dispatch({
- data: networkId,
- type: ActionTypes.UpdateNetworkId,
- });
+ data: networkId,
+ type: ActionTypes.UpdateNetworkId,
+ });
}
public updateOrderFillAmount(amount: BigNumber) {
this._dispatch({
@@ -210,7 +210,7 @@ export class Dispatcher {
}
// Shared
- public showFlashMessage(msg: string|React.ReactNode) {
+ public showFlashMessage(msg: string | React.ReactNode) {
this._dispatch({
data: msg,
type: ActionTypes.ShowFlashMessage,