diff --git a/src/components/ui/Switch.tsx b/src/components/ui/Switch.tsx index 8defce2..9bf9095 100644 --- a/src/components/ui/Switch.tsx +++ b/src/components/ui/Switch.tsx @@ -8,14 +8,17 @@ import { cn } from "../../utils/cn"; export default function Switch({ value = false, onChange = () => {}, + disabled = false, }: { value?: boolean; onChange?: (value: boolean) => void; + disabled?: boolean; }) { return (
onChange(!value)} > @@ -24,6 +27,7 @@ export default function Switch({ "absolute left-1 top-1 h-6 w-6 translate-x-0 transform rounded-full bg-white", { "translate-x-6": value, + "bg-neutral-300": disabled, }, )} >
diff --git a/src/pages/settings/plugins.tsx b/src/pages/settings/plugins.tsx index d3bf881..22688cf 100644 --- a/src/pages/settings/plugins.tsx +++ b/src/pages/settings/plugins.tsx @@ -33,11 +33,11 @@ export default function PluginsPage() { "Provides the core functionality of the app\nAuthor: Project Graph Developers" } > - - {}} /> + {}} disabled /> );