Add manage owners redux actions

This commit is contained in:
Germán Martínez 2019-07-12 12:08:20 +02:00
parent ca50de5cb2
commit 2b076045da
5 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,19 @@
// @flow
import addSafeOwner from '~/routes/safe/store/actions/addSafeOwner'
import removeSafeOwner from '~/routes/safe/store/actions/removeSafeOwner'
import replaceSafeOwner from '~/routes/safe/store/actions/replaceSafeOwner'
import editSafeOwner from '~/routes/safe/store/actions/editSafeOwner'
export type Actions = {
addSafeOwner: Function,
removeSafeOwner: Function,
replaceSafeOwner: Function,
editSafeOwner: Function,
}
export default {
addSafeOwner,
removeSafeOwner,
replaceSafeOwner,
editSafeOwner,
}

View File

@ -0,0 +1,8 @@
// @flow
import { createAction } from 'redux-actions'
export const ADD_SAFE_OWNER = 'ADD_SAFE_OWNER'
const addSafeOwner = createAction<string, *>(ADD_SAFE_OWNER)
export default addSafeOwner

View File

@ -0,0 +1,8 @@
// @flow
import { createAction } from 'redux-actions'
export const EDIT_SAFE_OWNER = 'EDIT_SAFE_OWNER'
const editSafeOwner = createAction<string, *>(EDIT_SAFE_OWNER)
export default editSafeOwner

View File

@ -0,0 +1,8 @@
// @flow
import { createAction } from 'redux-actions'
export const REMOVE_SAFE_OWNER = 'REMOVE_SAFE_OWNER'
const removeSafeOwner = createAction<string, *>(REMOVE_SAFE_OWNER)
export default removeSafeOwner

View File

@ -0,0 +1,8 @@
// @flow
import { createAction } from 'redux-actions'
export const REPLACE_SAFE_OWNER = 'REPLACE_SAFE_OWNER'
const replaceSafeOwner = createAction<string, *>(REPLACE_SAFE_OWNER)
export default replaceSafeOwner