1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-28 11:18:16 +00:00

flowtype in store and Button

This commit is contained in:
Szymon Lesisz 2018-10-10 10:20:31 +02:00
parent 6d4f0a2943
commit f257f98ab5
2 changed files with 3 additions and 10 deletions

View File

@ -9,7 +9,7 @@ import { TRANSITION, FONT_WEIGHT, FONT_SIZE } from 'config/variables';
type Props = {
children: React.Node,
className?: string,
onClick: () => any,
onClick?: () => any,
onMouseEnter?: () => void,
onMouseLeave?: () => void,
onFocus?: () => void,

View File

@ -46,9 +46,8 @@ if (process.env.NODE_ENV === 'development') {
collapsed: true,
});
const { devToolsExtension }: ?Function = window;
if (typeof devToolsExtension === 'function') {
enhancers.push(devToolsExtension());
if (window && typeof window.devToolsExtension === 'function') {
enhancers.push(window.devToolsExtension());
}
composedEnhancers = compose(
@ -67,9 +66,3 @@ export default createStore(
initialState,
composedEnhancers,
);
// if (process.env.NODE_ENV === 'production') {
// module.exports = require('./store.dev'); // eslint-disable-line global-require
// } else {
// module.exports = require('./store.dev'); // eslint-disable-line global-require
// }