This commit is contained in:
eduardruzga
2024-12-16 11:09:35 +02:00
parent 1b76d3c28f
commit 070e911be1
6 changed files with 40 additions and 20 deletions

View File

@@ -3,7 +3,15 @@ import { Switch } from '~/components/ui/Switch';
import { useSettings } from '~/lib/hooks/useSettings';
export default function FeaturesTab() {
const { debug, enableDebugMode, isLocalModel, enableLocalModels, eventLogs, enableEventLogs, useLatestBranch, enableLatestBranch } = useSettings();
const {
debug,
enableDebugMode,
isLocalModel,
enableLocalModels,
enableEventLogs,
useLatestBranch,
enableLatestBranch,
} = useSettings();
const handleToggle = (enabled: boolean) => {
enableDebugMode(enabled);
@@ -22,7 +30,9 @@ export default function FeaturesTab() {
<div className="flex items-center justify-between">
<div>
<span className="text-bolt-elements-textPrimary">Use Main Branch</span>
<p className="text-sm text-bolt-elements-textSecondary">Check for updates against the main branch instead of stable</p>
<p className="text-sm text-bolt-elements-textSecondary">
Check for updates against the main branch instead of stable
</p>
</div>
<Switch className="ml-auto" checked={useLatestBranch} onCheckedChange={enableLatestBranch} />
</div>