WA-232 remove token action

This commit is contained in:
apanizo 2018-07-26 13:22:26 +02:00
parent 67c1559692
commit 043505183f
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
// @flow
import { createAction } from 'redux-actions'
import { type Token } from '~/routes/tokens/store/model/token'
export const REMOVE_TOKEN = 'REMOVE_TOKEN'
type RemoveTokenProps = {
safeAddress: string,
token: Token,
}
const removeToken = createAction(
REMOVE_TOKEN,
(safeAddress: string, token: Token): RemoveTokenProps => ({
safeAddress,
token,
}),
)
export default removeToken