mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-11 11:34:26 +00:00
Add Flow types.
This commit is contained in:
parent
eb658ec9ff
commit
67c4b826f5
@ -1,24 +1,22 @@
|
||||
// @flow
|
||||
export const CONFIG_LANGUAGE_CHANGE = 'CONFIG_LANGUAGE_CHANGE';
|
||||
export const CONFIG_LANGUAGE_DROPDOWN_TOGGLE = 'CONFIG_LANGUAGE_DROPDOWN_TOGGLE';
|
||||
export const CONFIG_NODE_CHANGE = 'CONFIG_NODE_CHANGE';
|
||||
export const CONFIG_NODE_DROPDOWN_TOGGLE = 'CONFIG_NODE_DROPDOWN_TOGGLE';
|
||||
|
||||
|
||||
export const CHANGE_LANGUAGE = (index) => ({
|
||||
export const CHANGE_LANGUAGE = (index: number) => Object({
|
||||
type: CONFIG_LANGUAGE_CHANGE, index: index
|
||||
})
|
||||
|
||||
|
||||
export const TOGGLE_LANGUAGE_DROPDOWN = () => ({
|
||||
export const TOGGLE_LANGUAGE_DROPDOWN = () => Object({
|
||||
type: CONFIG_LANGUAGE_DROPDOWN_TOGGLE
|
||||
})
|
||||
|
||||
|
||||
export const CHANGE_NODE = (index) => ({
|
||||
export const CHANGE_NODE = (index: number) => Object({
|
||||
type: CONFIG_NODE_CHANGE, index: index
|
||||
})
|
||||
|
||||
|
||||
export const TOGGLE_NODE_DROPDOWN = () => ({
|
||||
export const TOGGLE_NODE_DROPDOWN = () => Object({
|
||||
type: CONFIG_NODE_DROPDOWN_TOGGLE
|
||||
})
|
@ -3,11 +3,11 @@ export const GENERATE_WALLET_FILE = 'GENERATE_WALLET_FILE'
|
||||
export const GENERATE_WALLET_FILE_CONFIRM = 'GENERATE_WALLET_FILE_CONFIRM'
|
||||
|
||||
|
||||
export const SHOW_GENERATE_WALLET_PASSWORD_ACTION = () => ({
|
||||
export const SHOW_GENERATE_WALLET_PASSWORD_ACTION = () => Object ({
|
||||
type: GENERATE_WALLET_SHOW_PASSWORD
|
||||
})
|
||||
|
||||
export const GENERATE_WALLET_FILE_ACTION = () => ({
|
||||
export const GENERATE_WALLET_FILE_ACTION = () => Object ({
|
||||
type: GENERATE_WALLET_FILE
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user