From c4dff9979031d875bb14b74e79449a05be152f63 Mon Sep 17 00:00:00 2001 From: kmmiio99o Date: Wed, 1 Oct 2025 17:20:35 +0200 Subject: [PATCH] I'm lazy, used help v4 --- plugins/Commands/settings.tsx | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/plugins/Commands/settings.tsx b/plugins/Commands/settings.tsx index df79390..3f14ead 100644 --- a/plugins/Commands/settings.tsx +++ b/plugins/Commands/settings.tsx @@ -143,7 +143,7 @@ function FactsSettingsPage({ forceRerender }: { forceRerender: () => void }) { } + leading={} value={storage.factSettings?.sendAsReply ?? true} onValueChange={(v: boolean) => { storage.factSettings.sendAsReply = v; @@ -166,7 +166,7 @@ function FactsSettingsPage({ forceRerender }: { forceRerender: () => void }) { } + leading={} value={storage.enabledCommands?.catfact ?? true} onValueChange={(v) => { storage.enabledCommands.catfact = v; @@ -177,7 +177,7 @@ function FactsSettingsPage({ forceRerender }: { forceRerender: () => void }) { } + leading={} value={storage.enabledCommands?.dogfact ?? true} onValueChange={(v) => { storage.enabledCommands.dogfact = v; @@ -188,7 +188,7 @@ function FactsSettingsPage({ forceRerender }: { forceRerender: () => void }) { } + leading={} value={storage.enabledCommands?.useless ?? true} onValueChange={(v) => { storage.enabledCommands.useless = v; @@ -202,7 +202,7 @@ function FactsSettingsPage({ forceRerender }: { forceRerender: () => void }) { ); } -// REFACTORED Gary API Settings Page with better switches +// Gary API Settings Page function GaryAPIPage({ forceRerender }: { forceRerender: () => void }) { useProxy(storage); @@ -240,7 +240,7 @@ function GaryAPIPage({ forceRerender }: { forceRerender: () => void }) { } + leading={} value={storage.enabledCommands?.gary ?? true} onValueChange={(v) => { storage.enabledCommands.gary = v; @@ -260,14 +260,14 @@ function GaryAPIPage({ forceRerender }: { forceRerender: () => void }) { } + leading={} value={currentSource === "gary"} onValueChange={(v) => v && handleSourceChange("gary")} /> } + leading={} value={currentSource === "catapi"} onValueChange={(v) => v && handleSourceChange("catapi")} /> @@ -382,7 +382,7 @@ function ImageSettingsPage({ forceRerender }: { forceRerender: () => void }) { } + leading={} value={storage.enabledCommands?.petpet ?? true} onValueChange={(v) => { storage.enabledCommands.petpet = v; @@ -421,7 +421,7 @@ function ImageSettingsPage({ forceRerender }: { forceRerender: () => void }) { ); } -// FIXED Spotify Commands Settings Page +// Spotify Commands Settings Page function SpotifySettingsPage({ forceRerender }: { forceRerender: () => void }) { const styles = stylesheet.createThemedStyleSheet({ container: { @@ -430,7 +430,7 @@ function SpotifySettingsPage({ forceRerender }: { forceRerender: () => void }) { }, infoText: { fontSize: 14, - color: semanticColors.TEXT_MUTED, // FIXED: Use semantic color + color: semanticColors.TEXT_MUTED, textAlign: "center", lineHeight: 20, }, @@ -605,7 +605,7 @@ function CreditsPage() { return ( - + Thanks to all the amazing developers who contributed to this plugin collection! @@ -755,7 +755,7 @@ export default function Settings() { storage.garySettings?.imageSource === "catapi" ? "Cat API" : storage.garySettings?.imageSource === "minker" ? "Minker API" : storage.garySettings?.imageSource === "goober" ? "Goober API" : "Gary API"}`} - leading={} + leading={} trailing={} onPress={() => navigateToPage("Gary Commands", GaryAPIPage)} /> @@ -780,7 +780,7 @@ export default function Settings() { } + leading={} trailing={} onPress={() => navigateToPage("Credits", CreditsPage)} />