mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
a49f00bd39
* chore: update all issue property components * style: issue properties
26 lines
687 B
TypeScript
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}
|
|
/>
|
|
);
|
|
});
|