yapi/client/containers/DevTools/DevTools.js

16 lines
471 B
JavaScript
Raw Normal View History

2017-08-04 12:15:45 +08:00
import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
const DockMonitorD = DockMonitor.default // 这里有 bug 不知道为啥非要使用 default
export default createDevTools(
2017-08-04 17:47:31 +08:00
<DockMonitorD
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-q"
defaultIsVisible={false}
>
2017-08-04 12:15:45 +08:00
<LogMonitor.default />
</DockMonitorD>
);