diff --git a/packages/dashboard/src/dashboard.tsx b/packages/dashboard/src/dashboard.tsx index 3324570d15417..e987de6ddbc20 100644 --- a/packages/dashboard/src/dashboard.tsx +++ b/packages/dashboard/src/dashboard.tsx @@ -19,8 +19,7 @@ import './dashboard.css'; import { navigate } from './index'; import { DashboardClient } from './dashboardClient'; import { asLocator } from '@isomorphic/locatorGenerators'; -import { SplitView } from '@web/components/splitView'; -import { ChevronLeftIcon, ChevronRightIcon, CloseIcon, PlusIcon, ReloadIcon, PickLocatorIcon, InspectorPanelIcon } from './icons'; +import { ChevronLeftIcon, ChevronRightIcon, CloseIcon, PlusIcon, ReloadIcon, PickLocatorIcon } from './icons'; import { SettingsButton } from './settingsView'; import type { DashboardClientChannel } from './dashboardClient'; @@ -43,7 +42,6 @@ export const Dashboard: React.FC<{ wsUrl?: string }> = ({ wsUrl }) => { const [tabs, setTabs] = React.useState(null); const [url, setUrl] = React.useState(''); const [frame, setFrame] = React.useState(); - const [showInspector, setShowInspector] = React.useState(false); const [pickingTabId, setPickingTabId] = React.useState(null); const [locatorToast, setLocatorToast] = React.useState<{ text: string; timer: ReturnType }>(); @@ -103,7 +101,6 @@ export const Dashboard: React.FC<{ wsUrl?: string }> = ({ wsUrl }) => { setChannel(undefined); setInteractive(false); setPickingTabId(null); - setShowInspector(false); }; return () => { @@ -272,7 +269,6 @@ export const Dashboard: React.FC<{ wsUrl?: string }> = ({ wsUrl }) => { onClick={() => { channel?.cancelPickLocator(); setPickingTabId(null); - setShowInspector(false); setInteractive(false); }} > @@ -334,66 +330,40 @@ export const Dashboard: React.FC<{ wsUrl?: string }> = ({ wsUrl }) => { > - {selectedTab?.inspectorUrl && ( - - )} {/* Viewport */}
- -
e.preventDefault()} - > - screencast - {locatorToast - ?
Copied: {locatorToast.text}
- : picking - ?
Click an element to pick its locator
- : null - } -
- {overlayText &&
{overlayText}
} -
} - sidebar={