make it dependent on one signle state

This commit is contained in:
dwelle 2025-04-30 10:32:53 +02:00
parent 9ea9275fbd
commit 4630001dee

View file

@ -325,8 +325,8 @@ const Panel = ({
trackEvent("shape-switch", type, "ui");
}
switchShapes(app, {
generic: isConvertibleGenericType(type),
linear: isConvertibleLinearType(type),
generic,
linear,
nextType: type as
| ConvertibleGenericTypes
| ConvertibleLinearTypes,