Format imports

This commit is contained in:
Germán Martínez 2019-07-02 08:57:02 +02:00
parent 1b1ff1ea33
commit c909c64020
8 changed files with 13 additions and 12 deletions

View File

@ -1,6 +1,6 @@
// @flow
import { type Owner } from '~/routes/safe/store/models/owner'
import { List, Map } from 'immutable'
import { type Owner } from '~/routes/safe/store/models/owner'
import { loadFromStorage, saveToStorage, removeFromStorage } from '~/utils/storage'
export const SAFES_KEY = 'SAFES'

View File

@ -1,9 +1,9 @@
// @flow
import { createAction } from 'redux-actions'
import type { Dispatch as ReduxDispatch } from 'redux'
import { type Token } from '~/logic/tokens/store/model/token'
import { removeTokenFromStorage, removeFromActiveTokens } from '~/logic/tokens/utils/tokensStorage'
import { type GlobalState } from '~/store/index'
import type { Dispatch as ReduxDispatch } from 'redux'
export const REMOVE_TOKEN = 'REMOVE_TOKEN'

View File

@ -1,6 +1,6 @@
// @flow
import { getWeb3 } from '~/logic/wallets/getWeb3'
import { BigNumber } from 'bignumber.js'
import { getWeb3 } from '~/logic/wallets/getWeb3'
export const toNative = (amt: string | number | BigNumber, decimal: number): BigNumber => {
const web3 = getWeb3()

View File

@ -1,7 +1,5 @@
// @flow
import {
lg, md, sm,
} from '~/theme/variables'
import { lg, md, sm } from '~/theme/variables'
export const styles = () => ({
heading: {

View File

@ -1,6 +1,6 @@
// @flow
import { getWeb3 } from '~/logic/wallets/getWeb3'
import { fireEvent } from '@testing-library/react'
import { getWeb3 } from '~/logic/wallets/getWeb3'
import { getFirstTokenContract } from '~/test/utils/tokenMovements'
import { aNewStore } from '~/store'
import { aMinedSafe } from '~/test/builder/safe.redux.builder'

View File

@ -1,6 +1,6 @@
// @flow
import { getWeb3 } from '~/logic/wallets/getWeb3'
import abi from 'ethereumjs-abi'
import { getWeb3 } from '~/logic/wallets/getWeb3'
/*
console.log(`to[${to}] \n\n valieInWei[${valueInWei}] \n\n

View File

@ -1,9 +1,9 @@
// @flow
import React from 'react'
import { getGnosisSafeInstanceAt } from '~/logic/contracts/safeContracts'
import GnoStepper from '~/components/Stepper'
import Stepper from '@material-ui/core/Stepper'
import TestUtils from 'react-dom/test-utils'
import { getGnosisSafeInstanceAt } from '~/logic/contracts/safeContracts'
import GnoStepper from '~/components/Stepper'
export const printOutApprove = async (
subject: string,
@ -38,7 +38,10 @@ type FinsihedTx = {
finishedTransaction: boolean,
}
export const whenExecuted = (SafeDom: React.Component<any, any>, ParentComponent: React.ElementType): Promise<void> => new Promise((resolve, reject) => {
export const whenExecuted = (
SafeDom: React.Component<any, any>,
ParentComponent: React.ElementType,
): Promise<void> => new Promise((resolve, reject) => {
let times = 0
const interval = setInterval(() => {
if (times >= MAX_TIMES_EXECUTED) {

View File

@ -1,7 +1,7 @@
// @flow
import { type Match } from 'react-router-dom'
import { buildMatchPropsFrom } from '~/test/utils/buildReactRouterProps'
import { safeSelector } from '~/routes/safe/store/selectors/index'
import { type Match } from 'react-router-dom'
import { type GlobalState } from '~/store'
import { type Safe } from '~/routes/safe/store/models/safe'