fixed up tsc error

This commit is contained in:
ari committed 2022-05-16 19:37:32 -04:00
1 parent c0c0d3181c
commit b342088b96
3 files changed
+5 -3

No files matched your search

@@ -15,7 +15,7 @@
}
.automation-editor--info-box.show {
min-width: 25em;
min-width: 20em;
}
.automation-editor--info-box.hide {
@@ -161,6 +161,7 @@ const convertGroupsToItems = (
autos={autos}
onSelectAutomation={onSelectAutomation}
onRemove={onRemove}
selected={selected}
/>
})
}
@@ -173,16 +174,18 @@ const AutomationListBoxGroup: FC<{
autos: Array<[AutomationData, number]>,
onSelectAutomation: (i: number) => void,
onRemove: (i: number) => void;
selected: number,
}> = ({
groupName,
groups,
autos,
onSelectAutomation,
onRemove,
selected,
}) => {
const [open, setOpen] = useState(false);
return <div className="automation-list-box--body--group">
<b onClick={() => setOpen(!open)}>{groupName} {!open ? "⊕" : "⊖"}</b>
{open && convertGroupsToItems(groups, autos, onSelectAutomation, onRemove)}
{open && convertGroupsToItems(groups, autos, onSelectAutomation, onRemove, selected)}
</div>
}
@@ -9,7 +9,6 @@
.automation-list--list {
flex: 1;
min-width: 400px;
max-width: 400px;
position: relative;
}