diff --git a/src/routes/safe/store/actions/transactions/fetchTransactions.js b/src/routes/safe/store/actions/transactions/fetchTransactions/index.js similarity index 74% rename from src/routes/safe/store/actions/transactions/fetchTransactions.js rename to src/routes/safe/store/actions/transactions/fetchTransactions/index.js index cd001ed1..690cbf9a 100644 --- a/src/routes/safe/store/actions/transactions/fetchTransactions.js +++ b/src/routes/safe/store/actions/transactions/fetchTransactions/index.js @@ -1,18 +1,19 @@ // @flow -import { List, Map, type RecordInstance } from 'immutable' +import { List, Map } from 'immutable' import { batch } from 'react-redux' import type { Dispatch as ReduxDispatch } from 'redux' -import { addIncomingTransactions } from './addIncomingTransactions' -import { addTransactions } from './addTransactions' -import { TxServiceModel } from './loadOutgoingTransactions' +import { addIncomingTransactions } from '../addIncomingTransactions' +import { addTransactions } from '../addTransactions' + +import { type SafeTransactionsType, TxServiceModel, loadOutgoingTransactions } from './loadOutgoingTransactions' import { addCancellationTransactions } from '~/routes/safe/store/actions/transactions/addCancellationTransactions' import { type IncomingTransaction } from '~/routes/safe/store/models/incomingTransaction' import { type GlobalState } from '~/store' export default (safeAddress: string) => async (dispatch: ReduxDispatch, getState: GetState) => { - const transactions: SafeTransactionsType | typeof undefined = await loadSafeTransactions(safeAddress, getState) + const transactions: SafeTransactionsType | typeof undefined = await loadOutgoingTransactions(safeAddress, getState) if (transactions) { const { cancel, outgoing } = transactions diff --git a/src/routes/safe/store/actions/transactions/fetchTransactions/loadOutgoingTransactions.js b/src/routes/safe/store/actions/transactions/fetchTransactions/loadOutgoingTransactions.js index 8ed4efe0..85c302cd 100644 --- a/src/routes/safe/store/actions/transactions/fetchTransactions/loadOutgoingTransactions.js +++ b/src/routes/safe/store/actions/transactions/fetchTransactions/loadOutgoingTransactions.js @@ -49,7 +49,7 @@ export type TxServiceModel = { creationTx?: boolean, } -type SafeTransactionsType = { +export type SafeTransactionsType = { outgoing: Map>, cancel: Map>, }