mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-10 02:55:41 +00:00
da93fb1684
* Add repo wide prettier command to prepush * Make config file explict, remove formatAll to prepush
21 lines
545 B
TypeScript
21 lines
545 B
TypeScript
import { Token } from 'config/data';
|
|
import * as interfaces from './actionTypes';
|
|
import { TypeKeys } from './constants';
|
|
|
|
export type TAddCustomToken = typeof addCustomToken;
|
|
export function addCustomToken(payload: Token): interfaces.AddCustomTokenAction {
|
|
return {
|
|
type: TypeKeys.CUSTOM_TOKEN_ADD,
|
|
payload
|
|
};
|
|
}
|
|
|
|
export type TRemoveCustomToken = typeof removeCustomToken;
|
|
|
|
export function removeCustomToken(payload: string): interfaces.RemoveCustomTokenAction {
|
|
return {
|
|
type: TypeKeys.CUSTOM_TOKEN_REMOVE,
|
|
payload
|
|
};
|
|
}
|