From 2b076045da1579fec1d7ac1dc08ac24ceb1ca108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Mart=C3=ADnez?= Date: Fri, 12 Jul 2019 12:08:20 +0200 Subject: [PATCH] Add manage owners redux actions --- .../safe/components/Settings/actions.js | 19 +++++++++++++++++++ src/routes/safe/store/actions/addSafeOwner.js | 8 ++++++++ .../safe/store/actions/editSafeOwner.js | 8 ++++++++ .../safe/store/actions/removeSafeOwner.js | 8 ++++++++ .../safe/store/actions/replaceSafeOwner.js | 8 ++++++++ 5 files changed, 51 insertions(+) create mode 100644 src/routes/safe/components/Settings/actions.js create mode 100644 src/routes/safe/store/actions/addSafeOwner.js create mode 100644 src/routes/safe/store/actions/editSafeOwner.js create mode 100644 src/routes/safe/store/actions/removeSafeOwner.js create mode 100644 src/routes/safe/store/actions/replaceSafeOwner.js diff --git a/src/routes/safe/components/Settings/actions.js b/src/routes/safe/components/Settings/actions.js new file mode 100644 index 00000000..0d8e6622 --- /dev/null +++ b/src/routes/safe/components/Settings/actions.js @@ -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, +} diff --git a/src/routes/safe/store/actions/addSafeOwner.js b/src/routes/safe/store/actions/addSafeOwner.js new file mode 100644 index 00000000..bb9a4f0c --- /dev/null +++ b/src/routes/safe/store/actions/addSafeOwner.js @@ -0,0 +1,8 @@ +// @flow +import { createAction } from 'redux-actions' + +export const ADD_SAFE_OWNER = 'ADD_SAFE_OWNER' + +const addSafeOwner = createAction(ADD_SAFE_OWNER) + +export default addSafeOwner diff --git a/src/routes/safe/store/actions/editSafeOwner.js b/src/routes/safe/store/actions/editSafeOwner.js new file mode 100644 index 00000000..1edf0606 --- /dev/null +++ b/src/routes/safe/store/actions/editSafeOwner.js @@ -0,0 +1,8 @@ +// @flow +import { createAction } from 'redux-actions' + +export const EDIT_SAFE_OWNER = 'EDIT_SAFE_OWNER' + +const editSafeOwner = createAction(EDIT_SAFE_OWNER) + +export default editSafeOwner diff --git a/src/routes/safe/store/actions/removeSafeOwner.js b/src/routes/safe/store/actions/removeSafeOwner.js new file mode 100644 index 00000000..b83312c0 --- /dev/null +++ b/src/routes/safe/store/actions/removeSafeOwner.js @@ -0,0 +1,8 @@ +// @flow +import { createAction } from 'redux-actions' + +export const REMOVE_SAFE_OWNER = 'REMOVE_SAFE_OWNER' + +const removeSafeOwner = createAction(REMOVE_SAFE_OWNER) + +export default removeSafeOwner diff --git a/src/routes/safe/store/actions/replaceSafeOwner.js b/src/routes/safe/store/actions/replaceSafeOwner.js new file mode 100644 index 00000000..f6e75418 --- /dev/null +++ b/src/routes/safe/store/actions/replaceSafeOwner.js @@ -0,0 +1,8 @@ +// @flow +import { createAction } from 'redux-actions' + +export const REPLACE_SAFE_OWNER = 'REPLACE_SAFE_OWNER' + +const replaceSafeOwner = createAction(REPLACE_SAFE_OWNER) + +export default replaceSafeOwner