Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix(component): completly remove mobx devtools for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasse Küchler committed Dec 18, 2017
1 parent 5c60539 commit 54970fe
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/component/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,9 @@ class PreviewApp extends React.Component<PreviewAppProps, PreviewAppState> {
}

public render(): JSX.Element {
let DevTools;
try {
const DevToolsExports = require('mobx-react-devtools');
DevTools = DevToolsExports ? DevToolsExports.default : undefined;
} catch (error) {
// Ignored
}

return (
<div>
<Preview page={this.props.store.getCurrentPage()} />
{DevTools ? <DevTools.default /> : <div />}
</div>
);
}
Expand Down

0 comments on commit 54970fe

Please sign in to comment.