mirror of https://github.com/trezor/trezor-wallet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
719 B
34 lines
719 B
/* @flow */
|
|
'use strict';
|
|
|
|
export const ON_RESIZE: string = 'ON_RESIZE';
|
|
export const ON_BEFORE_UNLOAD: string = 'app__on_before_unload';
|
|
export const TOGGLE_DEVICE_DROPDOWN: string = 'TOGGLE_DEVICE_DROPDOWN';
|
|
export const RESIZE_CONTAINER: string = 'RESIZE_CONTAINER';
|
|
|
|
export const onResize = (): any => {
|
|
return {
|
|
type: ON_RESIZE
|
|
}
|
|
}
|
|
|
|
export const onBeforeUnload = (): any => {
|
|
return {
|
|
type: ON_BEFORE_UNLOAD
|
|
}
|
|
}
|
|
|
|
export const resizeAppContainer = (opened: boolean): any => {
|
|
return {
|
|
type: RESIZE_CONTAINER,
|
|
opened
|
|
}
|
|
}
|
|
|
|
export const toggleDeviceDropdown = (opened: boolean): any => {
|
|
return {
|
|
type: TOGGLE_DEVICE_DROPDOWN,
|
|
opened
|
|
}
|
|
}
|