From 9a4194e18a90ee920014d287a6b910327ba515f1 Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Mon, 5 Apr 2021 11:20:48 +0300 Subject: [PATCH] Remove Other tab Signed-off-by: Alex Andreev --- .../components/+preferences/preferences.tsx | 39 ++++++++----------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/src/renderer/components/+preferences/preferences.tsx b/src/renderer/components/+preferences/preferences.tsx index a743a03670..aa090abda0 100644 --- a/src/renderer/components/+preferences/preferences.tsx +++ b/src/renderer/components/+preferences/preferences.tsx @@ -92,11 +92,6 @@ export class Preferences extends React.Component { active={this.activeTab == PreferencesTab.Extensions} /> } - ); } @@ -146,6 +141,7 @@ export class Preferences extends React.Component { options={this.themeOptions} value={preferences.colorTheme} onChange={({ value }: SelectOption) => preferences.colorTheme = value} + themeName="lens" /> @@ -161,6 +157,22 @@ export class Preferences extends React.Component { onBlur={() => preferences.shell = this.shell} /> + +
+ +
+ + preferences.openAtLogin = v.target.checked} + name="startup" + /> + } + label="Automatically start Lens on login" + /> +
)} {this.activeTab == PreferencesTab.Proxy && ( @@ -230,23 +242,6 @@ export class Preferences extends React.Component { {extensions.filter(e => !e.showInPreferencesTab).map(this.renderExtension)} )} - - {this.activeTab == PreferencesTab.Other && ( -
-

Other

- - preferences.openAtLogin = v.target.checked} - name="startup" - /> - } - label="Automatically start Lens on login" - /> -
- )} ); }