diff --git a/gui/src/components/PageHeader.tsx b/gui/src/components/PageHeader.tsx index d37d82e6f..5ab02add2 100644 --- a/gui/src/components/PageHeader.tsx +++ b/gui/src/components/PageHeader.tsx @@ -1,4 +1,5 @@ import { ArrowLeftIcon } from "@heroicons/react/24/outline"; +import { getFontSize } from "../util"; export interface PageHeaderProps { onTitleClick?: () => void; @@ -15,7 +16,7 @@ export default function PageHeader({ }: PageHeaderProps) { return (
- + {title}
diff --git a/gui/src/pages/config/KeyboardShortcuts.tsx b/gui/src/pages/config/KeyboardShortcuts.tsx index 566bbb7bf..c4d0df3fc 100644 --- a/gui/src/pages/config/KeyboardShortcuts.tsx +++ b/gui/src/pages/config/KeyboardShortcuts.tsx @@ -202,7 +202,7 @@ const jetbrainsShortcuts: KeyboardShortcutProps[] = [ function KeyboardShortcuts() { return (
-

Keyboard shortcuts

+

Keyboard shortcuts

{(isJetBrains() ? jetbrainsShortcuts : vscodeShortcuts).map( (shortcut, i) => { diff --git a/gui/src/pages/config/index.tsx b/gui/src/pages/config/index.tsx index 4b9a5ce9e..6fd71b72d 100644 --- a/gui/src/pages/config/index.tsx +++ b/gui/src/pages/config/index.tsx @@ -1,7 +1,14 @@ +import { + AcademicCapIcon, + CircleStackIcon, + Cog6ToothIcon, + QuestionMarkCircleIcon, +} from "@heroicons/react/24/outline"; import { useState } from "react"; import { useNavigate } from "react-router-dom"; import PageHeader from "../../components/PageHeader"; import { useNavigationListener } from "../../hooks/useNavigationListener"; +import { getFontSize } from "../../util"; import { AccountButton } from "./AccountButton"; import { HelpCenterSection } from "./HelpCenterSection"; import { IndexingSettingsSection } from "./IndexingSettingsSection"; @@ -12,6 +19,7 @@ type TabOption = { id: string; label: string; component: React.ReactNode; + icon: React.ReactNode; }; function ConfigPage() { @@ -21,24 +29,28 @@ function ConfigPage() { const tabs: TabOption[] = [ { - id: "general", - label: "General", + id: "settings", + label: "Settings", component: , + icon: , }, { id: "indexing", label: "Indexing", component: , + icon: , }, { id: "help", - label: "Help Center", + label: "Help", component: , + icon: , }, { id: "shortcuts", label: "Shortcuts", component: , + icon: , }, ]; @@ -53,20 +65,24 @@ function ConfigPage() {
{/* Tab Headers */} -
+
{tabs.map((tab) => (
setActiveTab(tab.id)} > + {tab.icon} {tab.label}
))}
{/* Tab Content */} -
+
{tabs.find((tab) => tab.id === activeTab)?.component}