fix: GateRow children optional to allow toggle-only gates
This commit is contained in:
parent
cd1d41cff5
commit
ca87e77ada
@ -173,7 +173,7 @@ function SelectInput({
|
|||||||
function GateRow({
|
function GateRow({
|
||||||
label, hint, enabled, onToggle, children
|
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 (
|
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"}`}>
|
<div className={`border rounded-lg p-3 transition-colors ${enabled ? "border-blue-200 bg-blue-50/30" : "border-slate-200 bg-slate-50/50"}`}>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user