Browse Source

fix: make 'Learn More' link functional in theme settings (#10078)

Aryan "LAG" Gupta 1 month ago
parent
commit
cda7d3dd78
1 changed files with 3 additions and 2 deletions
  1. 3 2
      packages/app/src/components/settings-general.tsx

+ 3 - 2
packages/app/src/components/settings-general.tsx

@@ -5,6 +5,7 @@ import { useTheme, type ColorScheme } from "@opencode-ai/ui/theme"
 import { useLanguage } from "@/context/language"
 import { useLanguage } from "@/context/language"
 import { useSettings, monoFontFamily } from "@/context/settings"
 import { useSettings, monoFontFamily } from "@/context/settings"
 import { playSound, SOUND_OPTIONS } from "@/utils/sound"
 import { playSound, SOUND_OPTIONS } from "@/utils/sound"
+import { Link } from "./link"
 
 
 export const SettingsGeneral: Component = () => {
 export const SettingsGeneral: Component = () => {
   const theme = useTheme()
   const theme = useTheme()
@@ -107,9 +108,9 @@ export const SettingsGeneral: Component = () => {
               description={
               description={
                 <>
                 <>
                   {language.t("settings.general.row.theme.description")}{" "}
                   {language.t("settings.general.row.theme.description")}{" "}
-                  <a href="#" class="text-text-interactive-base">
+                  <Link href="https://opencode.ai/docs/themes/">
                     {language.t("common.learnMore")}
                     {language.t("common.learnMore")}
-                  </a>
+                  </Link>
                 </>
                 </>
               }
               }
             >
             >