diff options
Diffstat (limited to 'renderer/src/components/SettingsPage.tsx')
| -rw-r--r-- | renderer/src/components/SettingsPage.tsx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/renderer/src/components/SettingsPage.tsx b/renderer/src/components/SettingsPage.tsx index 9ebde44..d3ff4bf 100644 --- a/renderer/src/components/SettingsPage.tsx +++ b/renderer/src/components/SettingsPage.tsx | |||
| @@ -1,8 +1,9 @@ | |||
| 1 | import React, { useState } from "react"; | 1 | import React, { useState } from "react"; |
| 2 | import { SystemPromptsSettings } from "./settings/SystemPromptsSettings"; | 2 | import { SystemPromptsSettings } from "./settings/SystemPromptsSettings"; |
| 3 | import { GitSettings } from "./settings/GitSettings"; | 3 | import { GitSettings } from "./settings/GitSettings"; |
| 4 | import { ModelSettings } from "./settings/ModelSettings"; | ||
| 4 | 5 | ||
| 5 | type SettingsSection = "system-prompts" | "git"; | 6 | type SettingsSection = "model" | "system-prompts" | "git"; |
| 6 | 7 | ||
| 7 | interface SettingsPageProps { | 8 | interface SettingsPageProps { |
| 8 | onClose: () => void; | 9 | onClose: () => void; |
| @@ -10,7 +11,7 @@ interface SettingsPageProps { | |||
| 10 | 11 | ||
| 11 | export function SettingsPage({ onClose }: SettingsPageProps) { | 12 | export function SettingsPage({ onClose }: SettingsPageProps) { |
| 12 | const [activeSection, setActiveSection] = | 13 | const [activeSection, setActiveSection] = |
| 13 | useState<SettingsSection>("system-prompts"); | 14 | useState<SettingsSection>("model"); |
| 14 | 15 | ||
| 15 | return ( | 16 | return ( |
| 16 | <div className="settings-overlay"> | 17 | <div className="settings-overlay"> |
| @@ -33,6 +34,14 @@ export function SettingsPage({ onClose }: SettingsPageProps) { | |||
| 33 | <nav className="settings-nav"> | 34 | <nav className="settings-nav"> |
| 34 | <button | 35 | <button |
| 35 | className={`settings-nav-item${ | 36 | className={`settings-nav-item${ |
| 37 | activeSection === "model" ? " active" : "" | ||
| 38 | }`} | ||
| 39 | onClick={() => setActiveSection("model")} | ||
| 40 | > | ||
| 41 | Model | ||
| 42 | </button> | ||
| 43 | <button | ||
| 44 | className={`settings-nav-item${ | ||
| 36 | activeSection === "system-prompts" ? " active" : "" | 45 | activeSection === "system-prompts" ? " active" : "" |
| 37 | }`} | 46 | }`} |
| 38 | onClick={() => setActiveSection("system-prompts")} | 47 | onClick={() => setActiveSection("system-prompts")} |
| @@ -51,6 +60,7 @@ export function SettingsPage({ onClose }: SettingsPageProps) { | |||
| 51 | 60 | ||
| 52 | {/* Content */} | 61 | {/* Content */} |
| 53 | <div className="settings-content"> | 62 | <div className="settings-content"> |
| 63 | {activeSection === "model" && <ModelSettings />} | ||
| 54 | {activeSection === "system-prompts" && <SystemPromptsSettings />} | 64 | {activeSection === "system-prompts" && <SystemPromptsSettings />} |
| 55 | {activeSection === "git" && <GitSettings />} | 65 | {activeSection === "git" && <GitSettings />} |
| 56 | </div> | 66 | </div> |
