Add update Safe name action
This commit is contained in:
parent
3496b0e738
commit
7c41a564fc
|
@ -0,0 +1,10 @@
|
||||||
|
// @flow
|
||||||
|
import updateSafeName from '~/routes/safe/store/actions/updateSafeName'
|
||||||
|
|
||||||
|
export type Actions = {
|
||||||
|
updateSafeName: Function,
|
||||||
|
}
|
||||||
|
|
||||||
|
export default {
|
||||||
|
updateSafeName,
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
// @flow
|
||||||
|
import type { Dispatch as ReduxDispatch } from 'redux'
|
||||||
|
import { type GlobalState } from '~/store'
|
||||||
|
import updateSafe from './updateSafe'
|
||||||
|
|
||||||
|
const updateSafeName = (safeAddress: string, safeName: string) => async (dispatch: ReduxDispatch<GlobalState>) => {
|
||||||
|
dispatch(updateSafe({ address: safeAddress, name: safeName }))
|
||||||
|
}
|
||||||
|
|
||||||
|
export default updateSafeName
|
Loading…
Reference in New Issue