fix: GateRow children optional to allow toggle-only gates

This commit is contained in:
root 2026-03-13 10:00:52 +00:00
parent cd1d41cff5
commit ca87e77ada

View File

@ -173,7 +173,7 @@ function SelectInput({
function GateRow({
label, hint, enabled, onToggle, children
}: {
label: string; hint: string; enabled: boolean; onToggle: () => void; children: React.ReactNode;
label: string; hint: string; enabled: boolean; onToggle: () => void; children?: React.ReactNode;
}) {
return (
<div className={`border rounded-lg p-3 transition-colors ${enabled ? "border-blue-200 bg-blue-50/30" : "border-slate-200 bg-slate-50/50"}`}>