From 27b6e3499d1c96982c67e445a8ee2fcbb16d9b9f Mon Sep 17 00:00:00 2001 From: bndw Date: Wed, 4 Mar 2026 22:33:27 -0800 Subject: feat: Remove auto-send block from handleConfirmNewSession in App.tsx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ✅ Remove auto-send block from handleConfirmNewSession in App.tsx --- renderer/src/components/SettingsPage.tsx | 33 +++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) (limited to 'renderer/src/components/SettingsPage.tsx') diff --git a/renderer/src/components/SettingsPage.tsx b/renderer/src/components/SettingsPage.tsx index 7d06547..0c0c2e8 100644 --- a/renderer/src/components/SettingsPage.tsx +++ b/renderer/src/components/SettingsPage.tsx @@ -4,15 +4,18 @@ import { GitSettings } from "./settings/GitSettings"; import { ModelSettings } from "./settings/ModelSettings"; import { McpSettings } from "./settings/McpSettings"; -type SettingsSection = "model" | "mcp" | "system-prompts" | "git"; +type Theme = "dark" | "light"; +type SettingsSection = "appearance" | "model" | "mcp" | "system-prompts" | "git"; interface SettingsPageProps { onClose: () => void; + theme: Theme; + onToggleTheme: () => void; } -export function SettingsPage({ onClose }: SettingsPageProps) { +export function SettingsPage({ onClose, theme, onToggleTheme }: SettingsPageProps) { const [activeSection, setActiveSection] = - useState("model"); + useState("appearance"); return (
@@ -33,6 +36,14 @@ export function SettingsPage({ onClose }: SettingsPageProps) {
{/* Side nav */}
+
+ )} {activeSection === "model" && } {activeSection === "mcp" && } {activeSection === "system-prompts" && } -- cgit v1.2.3