diff --git a/src/shared/components/options/BrowserSettingsEditor.tsx b/src/shared/components/options/BrowserSettingsEditor.tsx
index bc9e7e2e..39a1cd33 100644
--- a/src/shared/components/options/BrowserSettingsEditor.tsx
+++ b/src/shared/components/options/BrowserSettingsEditor.tsx
@@ -44,7 +44,6 @@ export class BrowserSettingsEditor extends React.Component<{}, State> {
public render(): JSX.Element | null {
return (
-
Client settings
diff --git a/src/shared/components/options/OptionsConfiguration.tsx b/src/shared/components/options/OptionsConfiguration.tsx
index 48b17e5f..ed1248e5 100644
--- a/src/shared/components/options/OptionsConfiguration.tsx
+++ b/src/shared/components/options/OptionsConfiguration.tsx
@@ -1,15 +1,15 @@
import * as React from 'react'
-import { RouteComponentProps } from 'react-router'
import { Subscription } from 'rxjs'
import * as permissions from '../../../browser/permissions'
import storage from '../../../browser/storage'
import { StorageItems } from '../../../browser/types'
import { GQL } from '../../../types/gqlschema'
import { fetchCurrentUser } from '../../backend/server'
+import { ClientSettingsCard } from './ClientSettingsCard'
import { ConnectionCard } from './ConnectionCard'
import { FeatureFlagCard } from './FeatureFlagCard'
-interface Props extends RouteComponentProps {}
+interface Props {}
interface State {
currentUser: GQL.IUser | undefined
storage: StorageItems | undefined
@@ -78,6 +78,7 @@ export class OptionsConfiguration extends React.Component {
+ {storage.useExtensions && }
)
}
diff --git a/src/shared/components/options/OptionsDashboard.tsx b/src/shared/components/options/OptionsDashboard.tsx
index e11d1383..5ceaeaac 100644
--- a/src/shared/components/options/OptionsDashboard.tsx
+++ b/src/shared/components/options/OptionsDashboard.tsx
@@ -1,38 +1,14 @@
import * as React from 'react'
-import { Redirect, Route, Switch } from 'react-router'
-import { HashRouter } from 'react-router-dom'
-import { sourcegraphUrl } from '../../util/context'
-import { ExtensionRegistry } from './ExtensionRegistry'
import { OptionsConfiguration } from './OptionsConfiguration'
-import { OptionsPageSidebar } from './OptionsPageSidebar'
-
-const EXTENSION_ROUTE = '/extensions/:url/:author/:extension?'
export class OptionsDashboard extends React.Component {
- /**
- * extensionRedirectComponent redirects to the extension page on Sourcegraph instead of showing
- * the extension in the options page and keeps the user on the extension registry page.
- */
- private extensionRedirectComponent = (): JSX.Element | null => {
- const extensionUrl = window.location.hash.replace('#', sourcegraphUrl)
- window.open(extensionUrl, '_blank')
- return
- }
-
public render(): JSX.Element {
return (
-
-