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:
parent
6d4f0a2943
commit
f257f98ab5
@ -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,
|
||||
|
11
src/store.js
11
src/store.js
@ -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
|
||||
// }
|
Loading…
Reference in New Issue
Block a user