plane/web/components/issues/issue-layouts/properties/priority.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

26 lines
687 B
TypeScript

import { PrioritySelect } from "components/project";
import { observer } from "mobx-react-lite";
// types
import { TIssuePriorities } from "types";
export interface IIssuePropertyPriority {
value: TIssuePriorities;
onChange: (value: TIssuePriorities) => void;
disabled?: boolean;
hideDropdownArrow?: boolean;
}
export const IssuePropertyPriority: React.FC<IIssuePropertyPriority> = observer((props) => {
const { value, onChange, disabled, hideDropdownArrow = false } = props;
return (
<PrioritySelect
value={value}
onChange={onChange}
buttonClassName="!h-5 p-1.5"
disabled={disabled}
hideDropdownArrow={hideDropdownArrow}
/>
);
});