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.
16 lines
292 B
16 lines
292 B
6 years ago
|
/* @flow */
|
||
|
'use strict';
|
||
|
|
||
|
export const toggle = (): any => {
|
||
|
return (dispatch, getState) => {
|
||
|
|
||
|
if (!getState().log.opened) {
|
||
|
window.scrollTo(0, 0);
|
||
|
}
|
||
|
|
||
|
dispatch({
|
||
|
type: getState().log.opened ? 'log__close' : 'log__open'
|
||
|
});
|
||
|
}
|
||
|
}
|