From a21a685b0579b30c8fab2a38d736582c4d67e6ba Mon Sep 17 00:00:00 2001 From: Federico Ruggi <1081051+ruggi@users.noreply.github.com> Date: Tue, 22 Oct 2024 12:13:19 +0200 Subject: [PATCH] rename --- editor/src/components/inspector/flex-section.tsx | 2 +- editor/src/uuiui/radix-components.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/editor/src/components/inspector/flex-section.tsx b/editor/src/components/inspector/flex-section.tsx index ea9ef2d445ad..5d27487c3357 100644 --- a/editor/src/components/inspector/flex-section.tsx +++ b/editor/src/components/inspector/flex-section.tsx @@ -633,7 +633,7 @@ function AxisDimensionControl({ items={items} opener={invisibleOpener} onOpenChange={onOpenChangeTitleMenu} - isOpen={isTitleMenuOpen} + forceOpen={isTitleMenuOpen} /> void style?: CSSProperties - isOpen?: boolean + forceOpen?: boolean } export const ItemContainerTestId = (id: string) => `item-container-${id}` @@ -105,7 +105,7 @@ export const DropdownMenu = React.memo((props) => { }, []) const onEscapeKeyDown = React.useCallback((e: KeyboardEvent) => e.stopPropagation(), []) - const [open, setOpen] = usePropControlledStateV2(props.isOpen || false) + const [open, setOpen] = usePropControlledStateV2(props.forceOpen || false) const shouldShowCheckboxes = props.items.some( (i) => !isSeparatorDropdownMenuItem(i) && i.checked != null,