Apply prettier config
This commit is contained in:
@@ -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,
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import {ZeroEx} from '0x.js';
|
||||
import { ZeroEx } from '0x.js';
|
||||
import BigNumber from 'bignumber.js';
|
||||
import * as _ from 'lodash';
|
||||
import {
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
TokenState,
|
||||
TokenStateByAddress,
|
||||
} from 'ts/types';
|
||||
import {utils} from 'ts/utils/utils';
|
||||
import { utils } from 'ts/utils/utils';
|
||||
|
||||
// Instead of defaulting the docs version to an empty string, we pre-populate it with
|
||||
// a valid version value. This does not need to be updated however, since onLoad, it
|
||||
@@ -48,7 +48,7 @@ export interface State {
|
||||
availableDocVersions: string[];
|
||||
|
||||
// Shared
|
||||
flashMessage: string|React.ReactNode;
|
||||
flashMessage: string | React.ReactNode;
|
||||
providerType: ProviderType;
|
||||
injectedProviderName: string;
|
||||
}
|
||||
|
Reference in New Issue
Block a user