Skip to content

Commit 1c90b57

Browse files
committed
move around
1 parent 2d1940a commit 1c90b57

1 file changed

Lines changed: 9 additions & 25 deletions

File tree

ui/desktop/src/components/settings/SettingsView.tsx

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import ConfigSettings from './config/ConfigSettings';
99
import PromptsSettingsSection from './PromptsSettingsSection';
1010
import { ExtensionConfig } from '../../api';
1111
import { MainPanelLayout } from '../Layout/MainPanelLayout';
12-
import { Bot, Share2, Monitor, MessageSquare, FileText, Keyboard, Radio, HardDrive } from 'lucide-react';
12+
import { Bot, Share2, Monitor, MessageSquare, FileText, Keyboard, HardDrive } from 'lucide-react';
1313
import { useState, useEffect, useRef } from 'react';
1414
import TunnelSection from './tunnel/TunnelSection';
1515
import GatewaySettingsSection from './gateways/GatewaySettingsSection';
@@ -59,7 +59,7 @@ export default function SettingsView({
5959
chat: 'chat',
6060
prompts: 'prompts',
6161
keyboard: 'keyboard',
62-
gateway: 'gateway',
62+
gateway: 'sharing',
6363
'local-inference': 'local-inference',
6464
};
6565

@@ -165,16 +165,6 @@ export default function SettingsView({
165165
<Keyboard className="h-4 w-4" />
166166
Keyboard
167167
</TabsTrigger>
168-
{!tunnelDisabled && (
169-
<TabsTrigger
170-
value="gateway"
171-
className="flex gap-2"
172-
data-testid="settings-gateway-tab"
173-
>
174-
<Radio className="h-4 w-4" />
175-
Gateway
176-
</TabsTrigger>
177-
)}
178168
<TabsTrigger value="app" className="flex gap-2" data-testid="settings-app-tab">
179169
<Monitor className="h-4 w-4" />
180170
App
@@ -208,9 +198,15 @@ export default function SettingsView({
208198
value="sharing"
209199
className="mt-0 focus-visible:outline-none focus-visible:ring-0"
210200
>
211-
<div className="space-y-8">
201+
<div className="space-y-8 pb-8">
212202
<SessionSharingSection />
213203
<ExternalBackendSection />
204+
{!tunnelDisabled && (
205+
<div className="space-y-4">
206+
<TunnelSection />
207+
<GatewaySettingsSection />
208+
</div>
209+
)}
214210
</div>
215211
</TabsContent>
216212

@@ -228,18 +224,6 @@ export default function SettingsView({
228224
<KeyboardShortcutsSection />
229225
</TabsContent>
230226

231-
{!tunnelDisabled && (
232-
<TabsContent
233-
value="gateway"
234-
className="mt-0 focus-visible:outline-none focus-visible:ring-0"
235-
>
236-
<div className="space-y-4 pr-4 pb-8 mt-1">
237-
<TunnelSection />
238-
<GatewaySettingsSection />
239-
</div>
240-
</TabsContent>
241-
)}
242-
243227
<TabsContent
244228
value="app"
245229
className="mt-0 focus-visible:outline-none focus-visible:ring-0"

0 commit comments

Comments
 (0)