clean up a few save buttons

This commit is contained in:
miloschwartz
2025-06-30 12:28:27 -07:00
parent a0381eb2c6
commit 4ffdd6f74f
8 changed files with 282 additions and 287 deletions

View File

@@ -4,7 +4,7 @@ import { Label } from "./ui/label";
interface SwitchComponentProps {
id: string;
label: string;
label?: string;
description?: string;
defaultChecked?: boolean;
disabled?: boolean;
@@ -28,7 +28,7 @@ export function SwitchInput({
onCheckedChange={onCheckedChange}
disabled={disabled}
/>
<Label htmlFor={id}>{label}</Label>
{label && <Label htmlFor={id}>{label}</Label>}
</div>
{description && (
<span className="text-muted-foreground text-sm">