feat: hide dev options by default
Some checks failed
TrafficCue CI / check (push) Failing after 54s
TrafficCue CI / build (push) Successful in 48s

This commit is contained in:
Cfp
2025-08-11 09:45:52 +02:00
parent a2064e8dbb
commit 7e6423edd0
4 changed files with 43 additions and 3 deletions

View File

@ -2,6 +2,9 @@
import { CodeIcon, InfoIcon, LanguagesIcon, MapIcon, PaintbrushIcon } from "@lucide/svelte";
import SidebarHeader from "../SidebarHeader.svelte";
import SettingsButton from "./SettingsButton.svelte";
import { getDeveloperToggle } from "./developer.svelte";
const dev = getDeveloperToggle();
</script>
<SidebarHeader>
@ -22,7 +25,9 @@
<section>
<h2>About</h2>
<SettingsButton icon={CodeIcon} text="Developer Settings" view="dev-options" />
{#if dev.current == "true"}
<SettingsButton icon={CodeIcon} text="Developer Settings" view="dev-options" />
{/if}
<SettingsButton icon={InfoIcon} text="About" view="about" />
</section>
</div>