Adding PluginDebugger sheet

Summary: Adding a PluginDebugger that gives the user some information why a plugin might not be loaded.

Reviewed By: jknoxville

Differential Revision: D13465143

fbshipit-source-id: f5d7037850874ca9545ac1523fb4e0f18ede7273
This commit is contained in:
Daniel Büchele
2018-12-20 06:07:55 -08:00
committed by Facebook Github Bot
parent fa9b85b065
commit 780ac863b8
2 changed files with 268 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ import ErrorBar from './chrome/ErrorBar.js';
import PluginContainer from './PluginContainer.js';
import Sheet from './chrome/Sheet.js';
import {ipcRenderer} from 'electron';
import PluginDebugger from './chrome/PluginDebugger.js';
import type Logger from './fb-stubs/Logger.js';
import type BugReporter from './fb-stubs/BugReporter.js';
@@ -55,6 +56,8 @@ export class App extends React.Component<Props> {
onHide={onHide}
/>
);
} else if (this.props.activeSheet === 'PLUGIN_DEBUGGER') {
return <PluginDebugger onHide={onHide} />;
} else {
return null;
}