Add manage owners redux actions
This commit is contained in:
parent
ca50de5cb2
commit
2b076045da
|
@ -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,
|
||||
}
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue