plane/web/components/issues/issue-layouts/properties/assignee.tsx
Aaryan Khandelwal a49f00bd39
chore: refactor and beautify issue properties (#2539)
* chore: update all issue property components

* style: issue properties
2023-10-25 19:47:58 +05:30

29 lines
740 B
TypeScript

import { observer } from "mobx-react-lite";
// components
import { MembersSelect } from "components/project";
// types
import { IUserLite } from "types";
export interface IIssuePropertyAssignee {
value: string[];
onChange: (data: string[]) => void;
members: IUserLite[] | null;
disabled?: boolean;
hideDropdownArrow?: boolean;
}
export const IssuePropertyAssignee: React.FC<IIssuePropertyAssignee> = observer((props) => {
const { value, onChange, members, disabled = false, hideDropdownArrow = false } = props;
return (
<MembersSelect
value={value}
onChange={onChange}
members={members ?? undefined}
disabled={disabled}
hideDropdownArrow={hideDropdownArrow}
multiple
/>
);
});