From d2ad9754aeccae870f73f03ff6e9eb01384ee631 Mon Sep 17 00:00:00 2001 From: Oleg Isonen Date: Sat, 23 Jul 2022 14:46:17 +0200 Subject: [PATCH] lint --- .../app/shared/design-system/components/combobox.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/designer/app/shared/design-system/components/combobox.tsx b/apps/designer/app/shared/design-system/components/combobox.tsx index b2b7f121f1..f8fab43c64 100644 --- a/apps/designer/app/shared/design-system/components/combobox.tsx +++ b/apps/designer/app/shared/design-system/components/combobox.tsx @@ -2,7 +2,6 @@ import { useState, forwardRef, useEffect, - type ElementRef, type ComponentProps, type ForwardRefRenderFunction, } from "react"; @@ -16,7 +15,6 @@ import { itemCss } from "./menu"; import { panelStyles } from "./panel"; import { TextField } from "./text-field"; import { Box } from "./box"; -import { Flex } from "./flex"; import { Grid } from "./grid"; type Label = string; @@ -74,9 +72,7 @@ type ComboboxProps = { onItemSelect?: (value: Item) => void; onItemHighlight?: (value?: Item) => void; itemToString?: (item: Item | null) => string; - disclosure?: ( - props: ComponentProps - ) => JSX.Element; + disclosure?: (props: ComponentProps) => JSX.Element; // @todo should we spread those props flat? contentProps?: ComponentProps; }; @@ -133,7 +129,7 @@ export const Combobox = ({ if (isOpen === false) { setFoundItems(items); } - }, [isOpen]); + }, [isOpen, items]); const inputProps: Record = getInputProps({ name }); const toggleProps: Record = getToggleButtonProps();