Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

tsc

Sultande1bf7fa0865
diff --git a/packages/design-system/src/components/combobox.tsx b/packages/design-system/src/components/combobox.tsx
index d4aee1c557..723d764e0f 100644
--- a/packages/design-system/src/components/combobox.tsx
+++ b/packages/design-system/src/components/combobox.tsx
@@ -1,7 +1,9 @@
import {
useState,
forwardRef,
+ /*
useCallback,
+*/
type ComponentProps,
type ForwardRefRenderFunction,
} from "react";
@@ -11,8 +13,6 @@ import { useCombobox, type UseComboboxGetItemPropsOptions } from "downshift";
import { matchSorter } from "match-sorter";
import { styled } from "../stitches.config";
import { IconButton } from "./icon-button";
-import { itemCss } from "./menu";
-import { panelStyles } from "./panel";
import { TextField } from "./text-field";
import { Box } from "./box";
import { Grid } from "./grid";
@@ -163,6 +163,7 @@ export const Combobox = <Item extends BaseItem>({
renderPopperContent = (props) => <ComboboxPopperContent {...props} />,
}: ComboboxProps<Item>) => {
const [foundItems, setFoundItems] = useState(items);
+ /*
const stateReducer = useCallback((state, actionAndChanges) => {
const { type, changes } = actionAndChanges;
switch (type) {
@@ -196,6 +197,7 @@ export const Combobox = <Item extends BaseItem>({
return changes; // otherwise business as usual.
}
}, []);
+*/
const {
isOpen,
getToggleButtonProps,
diff --git a/packages/design-system/src/components/dropdown-menu.tsx b/packages/design-system/src/components/dropdown-menu.tsx
index 3198603371..b1123d8dd4 100644
--- a/packages/design-system/src/components/dropdown-menu.tsx
+++ b/packages/design-system/src/components/dropdown-menu.tsx
@@ -4,7 +4,6 @@ import { styled, CSS } from "../stitches.config";
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
import { menuCss, separatorCss, itemCss, labelCss } from "./menu";
import { Box } from "./box";
-import { Flex } from "./flex";
import { panelStyles } from "./panel";
export const DropdownMenu = DropdownMenuPrimitive.Root;