forked from github/plane
8662305f0a
* fix: spredsheet layout state column state name & tootltip * fix: label select dropdown first item auto active state * fix: priority column padding & tooltip position
26 lines
681 B
TypeScript
26 lines
681 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"
|
|
disabled={disabled}
|
|
hideDropdownArrow={hideDropdownArrow}
|
|
/>
|
|
);
|
|
});
|