fix: state drop down refactor

This commit is contained in:
sriram veeraghanta 2025-02-25 15:39:29 +05:30
parent 9297448ec8
commit d08bce35a3
3 changed files with 9 additions and 10 deletions

View file

@ -2,20 +2,21 @@ import { observer } from "mobx-react";
import { Check } from "lucide-react";
import { Combobox } from "@headlessui/react";
type Props = {
export type TStateOptionProps = {
projectId: string | null | undefined;
option: {
value: string | undefined;
query: string;
content: JSX.Element;
};
filterAvailableStateIds: boolean;
selectedValue: string | null | undefined;
className?: string;
filterAvailableStateIds?: boolean;
isForWorkItemCreation?: boolean;
alwaysAllowStateChange?: boolean;
};
export const StateOption = observer((props: Props) => {
export const StateOption = observer((props: TStateOptionProps) => {
const { option, className = "" } = props;
return (