WA-238 creation of updateDailyLimit action
This commit is contained in:
parent
86fad267ca
commit
79ae47570f
|
@ -0,0 +1,19 @@
|
||||||
|
// @flow
|
||||||
|
import { createAction } from 'redux-actions'
|
||||||
|
|
||||||
|
export const UPDATE_DAILY_LIMIT = 'UPDATE_DAILY_LIMIT'
|
||||||
|
|
||||||
|
type SpentTodayProps = {
|
||||||
|
safeAddress: string,
|
||||||
|
dailyLimit: DailyLimitProps,
|
||||||
|
}
|
||||||
|
|
||||||
|
const updateDailyLimit = createAction(
|
||||||
|
UPDATE_DAILY_LIMIT,
|
||||||
|
(safeAddress: string, dailyLimit: DailyLimitProps): SpentTodayProps => ({
|
||||||
|
safeAddress,
|
||||||
|
dailyLimit,
|
||||||
|
}),
|
||||||
|
)
|
||||||
|
|
||||||
|
export default updateDailyLimit
|
Loading…
Reference in New Issue