mirror of
https://github.com/trezor/trezor-wallet
synced 2025-02-26 07:02: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 = {
|
type Props = {
|
||||||
children: React.Node,
|
children: React.Node,
|
||||||
className?: string,
|
className?: string,
|
||||||
onClick: () => any,
|
onClick?: () => any,
|
||||||
onMouseEnter?: () => void,
|
onMouseEnter?: () => void,
|
||||||
onMouseLeave?: () => void,
|
onMouseLeave?: () => void,
|
||||||
onFocus?: () => void,
|
onFocus?: () => void,
|
||||||
|
11
src/store.js
11
src/store.js
@ -46,9 +46,8 @@ if (process.env.NODE_ENV === 'development') {
|
|||||||
collapsed: true,
|
collapsed: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
const { devToolsExtension }: ?Function = window;
|
if (window && typeof window.devToolsExtension === 'function') {
|
||||||
if (typeof devToolsExtension === 'function') {
|
enhancers.push(window.devToolsExtension());
|
||||||
enhancers.push(devToolsExtension());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
composedEnhancers = compose(
|
composedEnhancers = compose(
|
||||||
@ -67,9 +66,3 @@ export default createStore(
|
|||||||
initialState,
|
initialState,
|
||||||
composedEnhancers,
|
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