aboutsummaryrefslogtreecommitdiffstats
path: root/renderer/src/components/SettingsPage.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'renderer/src/components/SettingsPage.tsx')
-rw-r--r--renderer/src/components/SettingsPage.tsx12
1 files changed, 11 insertions, 1 deletions
diff --git a/renderer/src/components/SettingsPage.tsx b/renderer/src/components/SettingsPage.tsx
index d3ff4bf..7d06547 100644
--- a/renderer/src/components/SettingsPage.tsx
+++ b/renderer/src/components/SettingsPage.tsx
@@ -2,8 +2,9 @@ import React, { useState } from "react";
2import { SystemPromptsSettings } from "./settings/SystemPromptsSettings"; 2import { SystemPromptsSettings } from "./settings/SystemPromptsSettings";
3import { GitSettings } from "./settings/GitSettings"; 3import { GitSettings } from "./settings/GitSettings";
4import { ModelSettings } from "./settings/ModelSettings"; 4import { ModelSettings } from "./settings/ModelSettings";
5import { McpSettings } from "./settings/McpSettings";
5 6
6type SettingsSection = "model" | "system-prompts" | "git"; 7type SettingsSection = "model" | "mcp" | "system-prompts" | "git";
7 8
8interface SettingsPageProps { 9interface SettingsPageProps {
9 onClose: () => void; 10 onClose: () => void;
@@ -42,6 +43,14 @@ export function SettingsPage({ onClose }: SettingsPageProps) {
42 </button> 43 </button>
43 <button 44 <button
44 className={`settings-nav-item${ 45 className={`settings-nav-item${
46 activeSection === "mcp" ? " active" : ""
47 }`}
48 onClick={() => setActiveSection("mcp")}
49 >
50 MCP Servers
51 </button>
52 <button
53 className={`settings-nav-item${
45 activeSection === "system-prompts" ? " active" : "" 54 activeSection === "system-prompts" ? " active" : ""
46 }`} 55 }`}
47 onClick={() => setActiveSection("system-prompts")} 56 onClick={() => setActiveSection("system-prompts")}
@@ -61,6 +70,7 @@ export function SettingsPage({ onClose }: SettingsPageProps) {
61 {/* Content */} 70 {/* Content */}
62 <div className="settings-content"> 71 <div className="settings-content">
63 {activeSection === "model" && <ModelSettings />} 72 {activeSection === "model" && <ModelSettings />}
73 {activeSection === "mcp" && <McpSettings />}
64 {activeSection === "system-prompts" && <SystemPromptsSettings />} 74 {activeSection === "system-prompts" && <SystemPromptsSettings />}
65 {activeSection === "git" && <GitSettings />} 75 {activeSection === "git" && <GitSettings />}
66 </div> 76 </div>