fix: improvements for project types. (#5857)

This commit is contained in:
Prateek Shourya
2024-10-18 11:08:07 +05:30
committed by GitHub
parent 9530884c59
commit 46302f41bc
5 changed files with 27 additions and 24 deletions

View File

@@ -3,8 +3,6 @@ import { observer } from "mobx-react";
import { usePopper } from "react-popper";
import { Check, ChevronDown, Search } from "lucide-react";
import { Combobox } from "@headlessui/react";
// types
import { IProject } from "@plane/types";
// ui
import { ComboDropDown } from "@plane/ui";
// components
@@ -14,6 +12,8 @@ import { cn } from "@/helpers/common.helper";
// hooks
import { useProject } from "@/hooks/store";
import { useDropdown } from "@/hooks/use-dropdown";
// plane web types
import { TProject } from "@/plane-web/types";
// components
import { DropdownButton } from "./buttons";
// constants
@@ -27,7 +27,7 @@ type Props = TDropdownProps & {
dropdownArrowClassName?: string;
onChange: (val: string) => void;
onClose?: () => void;
renderCondition?: (project: IProject) => boolean;
renderCondition?: (project: TProject) => boolean;
value: string | null;
renderByDefault?: boolean;
};