Skip to content

Commit

Permalink
[DevTools] Remove Welcome dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Sep 19, 2019
1 parent 924a305 commit 98c48d7
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 113 deletions.
12 changes: 0 additions & 12 deletions packages/react-devtools-core/src/standalone.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ let nodeWaitingToConnectHTML: string = '';
let projectRoots: Array<string> = [];
let statusListener: StatusListener = (message: string) => {};

// Unlike browser extension users, people using the standalone have actively installed version 4,
// So we probably don't need to show them a changelog notice.
// We should give embedded users (e.g. Nuclide, Sonar) a way of showing this dialog though.
let showWelcomeToTheNewDevToolsDialog: boolean = false;

function setContentDOMNode(value: HTMLElement) {
node = value;

Expand All @@ -63,11 +58,6 @@ function setStatusListener(value: StatusListener) {
return DevtoolsUI;
}

function setShowWelcomeToTheNewDevToolsDialog(value: boolean) {
showWelcomeToTheNewDevToolsDialog = value;
return DevtoolsUI;
}

let bridge: FrontendBridge | null = null;
let store: Store | null = null;
let root = null;
Expand Down Expand Up @@ -108,7 +98,6 @@ function reload() {
bridge: ((bridge: any): FrontendBridge),
canViewElementSourceFunction,
showTabBar: true,
showWelcomeToTheNewDevToolsDialog,
store: ((store: any): Store),
warnIfLegacyBackendDetected: true,
viewElementSourceFunction,
Expand Down Expand Up @@ -318,7 +307,6 @@ const DevtoolsUI = {
connectToSocket,
setContentDOMNode,
setProjectRoots,
setShowWelcomeToTheNewDevToolsDialog,
setStatusListener,
startServer,
};
Expand Down
1 change: 0 additions & 1 deletion packages/react-devtools-extensions/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ function createPanelIfReactLoaded() {
overrideTab,
profilerPortalContainer,
showTabBar: false,
showWelcomeToTheNewDevToolsDialog: true,
store,
viewElementSourceFunction,
}),
Expand Down

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion packages/react-devtools-shell/src/devtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ inject('dist/app.js', () => {
createElement(DevTools, {
browserTheme: 'light',
showTabBar: true,
showWelcomeToTheNewDevToolsDialog: true,
warnIfLegacyBackendDetected: true,
}),
);
Expand Down

0 comments on commit 98c48d7

Please sign in to comment.