forked from github/plane
a49f00bd39
* chore: update all issue property components * style: issue properties
29 lines
737 B
TypeScript
29 lines
737 B
TypeScript
import { observer } from "mobx-react-lite";
|
|
// components
|
|
import { LabelSelect } from "components/project";
|
|
// types
|
|
import { IIssueLabels } from "types";
|
|
|
|
export interface IIssuePropertyLabels {
|
|
value: string[];
|
|
onChange: (data: string[]) => void;
|
|
labels: IIssueLabels[] | null;
|
|
disabled?: boolean;
|
|
hideDropdownArrow?: boolean;
|
|
}
|
|
|
|
export const IssuePropertyLabels: React.FC<IIssuePropertyLabels> = observer((props) => {
|
|
const { value, onChange, labels, disabled, hideDropdownArrow = false } = props;
|
|
|
|
return (
|
|
<LabelSelect
|
|
value={value}
|
|
onChange={onChange}
|
|
labels={labels ?? undefined}
|
|
buttonClassName="h-5"
|
|
disabled={disabled}
|
|
hideDropdownArrow={hideDropdownArrow}
|
|
/>
|
|
);
|
|
});
|