File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ import React from 'react'
2
+ import { createDevTools } from 'redux-devtools'
3
+ import LogMonitor from 'redux-devtools-log-monitor'
4
+ import DockMonitor from 'redux-devtools-dock-monitor'
5
+
6
+ const DevTools = createDevTools (
7
+ < DockMonitor
8
+ toggleVisibilityKey = 'ctrl-h'
9
+ changePositionKey = 'ctrl-q'
10
+ defaultIsVisible = { false }
11
+ >
12
+ < LogMonitor theme = 'tomorrow' />
13
+ </ DockMonitor >
14
+ )
15
+
16
+ export default DevTools
Original file line number Diff line number Diff line change
1
+ /* eslint-disable no-undef */
2
+ if ( process . env . NODE_ENV === 'production' ) {
3
+ // eslint-disable-next-line global-require
4
+ module . exports = require ( './index.prod' ) . default
5
+ } else {
6
+ // eslint-disable-next-line global-require
7
+ module . exports = require ( './index.dev' ) . default
8
+ }
Original file line number Diff line number Diff line change
1
+ import React from 'react'
2
+
3
+ const DevTools = ( ) => < div />
4
+ DevTools . instrument = ( ) => { }
5
+
6
+ export default DevTools
You can’t perform that action at this time.
0 commit comments