mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-29 19:06:08 +00:00
Add update Safe name action
This commit is contained in:
parent
4334620367
commit
27585917aa
10
src/routes/safe/components/Settings/actions.js
Normal file
10
src/routes/safe/components/Settings/actions.js
Normal file
@ -0,0 +1,10 @@
|
||||
// @flow
|
||||
import updateSafeName from '~/routes/safe/store/actions/updateSafeName'
|
||||
|
||||
export type Actions = {
|
||||
updateSafeName: Function,
|
||||
}
|
||||
|
||||
export default {
|
||||
updateSafeName,
|
||||
}
|
10
src/routes/safe/store/actions/updateSafeName.js
Normal file
10
src/routes/safe/store/actions/updateSafeName.js
Normal file
@ -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…
x
Reference in New Issue
Block a user