plane/web/components/issues/issue-layouts/properties/priority.tsx
Lakhan Baheti b30e41f324 fix: spreadsheet layout issue properties (#2936)
* fix: spredsheet layout state column state name & tootltip

* fix: label select dropdown first item auto active state

* fix: priority column padding & tooltip position
2023-12-07 19:59:35 +05:30

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}
/>
);
});