remove unused vars, add comment for generateProps func
This commit is contained in:
parent
d7127fb968
commit
81e05c132d
|
@ -8,6 +8,8 @@ import { safeTokensSelector } from '~/routes/safe/store/selectors/index'
|
||||||
import { SAFE_PARAM_ADDRESS } from '~/routes/routes'
|
import { SAFE_PARAM_ADDRESS } from '~/routes/routes'
|
||||||
import updateSafe from './updateSafe'
|
import updateSafe from './updateSafe'
|
||||||
|
|
||||||
|
// the selector uses ownProps argument/router props to get the address of the safe
|
||||||
|
// so in order to use it I had to recreate the same structure
|
||||||
const generateMatchProps = (safeAddress: string) => ({
|
const generateMatchProps = (safeAddress: string) => ({
|
||||||
match: {
|
match: {
|
||||||
params: {
|
params: {
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
// @flow
|
// @flow
|
||||||
import { Map, List } from 'immutable'
|
import { Map } from 'immutable'
|
||||||
import { handleActions, type ActionType } from 'redux-actions'
|
import { handleActions, type ActionType } from 'redux-actions'
|
||||||
import { ADD_SAFE, buildOwnersFrom } from '~/routes/safe/store/actions/addSafe'
|
import { ADD_SAFE, buildOwnersFrom } from '~/routes/safe/store/actions/addSafe'
|
||||||
import SafeRecord, { type Safe, type SafeProps } from '~/routes/safe/store/models/safe'
|
import SafeRecord, { type Safe, type SafeProps } from '~/routes/safe/store/models/safe'
|
||||||
import { type OwnerProps } from '~/routes/safe/store/models/owner'
|
import { type OwnerProps } from '~/routes/safe/store/models/owner'
|
||||||
import type { SafeToken } from '~/routes/safe/store/models/safeToken'
|
|
||||||
import { loadFromStorage } from '~/utils/storage'
|
import { loadFromStorage } from '~/utils/storage'
|
||||||
import { SAFES_KEY } from '~/logic/safe/utils'
|
import { SAFES_KEY } from '~/logic/safe/utils'
|
||||||
import { UPDATE_SAFE } from '~/routes/safe/store/actions/updateSafe'
|
import { UPDATE_SAFE } from '~/routes/safe/store/actions/updateSafe'
|
||||||
|
|
Loading…
Reference in New Issue