Only load devtools when in dev
This commit is contained in:
@ -22,7 +22,10 @@ import DocumentScene from 'scenes/DocumentScene';
|
|||||||
import DocumentEdit from 'scenes/DocumentEdit';
|
import DocumentEdit from 'scenes/DocumentEdit';
|
||||||
import SlackAuth from 'scenes/SlackAuth';
|
import SlackAuth from 'scenes/SlackAuth';
|
||||||
|
|
||||||
import DevTools from 'mobx-react-devtools';
|
let DevTools;
|
||||||
|
if (__DEV__) {
|
||||||
|
DevTools = require('mobx-react-devtools').default;
|
||||||
|
}
|
||||||
|
|
||||||
function requireAuth(nextState, replace) {
|
function requireAuth(nextState, replace) {
|
||||||
if (!userStore.authenticated) {
|
if (!userStore.authenticated) {
|
||||||
|
Reference in New Issue
Block a user