OSDN Git Service

fixed the create asset string decimals for some occassion.
[bytom/bytom-electron.git] / src / features / assets / actions.js
1 import { baseCreateActions, baseUpdateActions, baseListActions } from 'features/shared/actions'
2
3 const type = 'asset'
4
5 const list = baseListActions(type, { defaultKey: 'alias' })
6 const create = baseCreateActions(type, {
7   intFields: ['quorum'],
8   redirectToShow: true,
9 })
10 const update = baseUpdateActions(type, {
11   jsonFields: ['tags']
12 })
13
14 const actions = {
15   ...list,
16   ...create,
17   ...update,
18 }
19 export default actions