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
29 lines
801 B
TypeScript
29 lines
801 B
TypeScript
import { observer } from "mobx-react-lite";
|
|
// components
|
|
import { EstimateSelect } from "components/estimates";
|
|
// types
|
|
import { IEstimatePoint } from "types";
|
|
|
|
export interface IIssuePropertyEstimates {
|
|
value: number | null;
|
|
onChange: (value: number | null) => void;
|
|
estimatePoints: IEstimatePoint[] | null;
|
|
disabled?: boolean;
|
|
hideDropdownArrow?: boolean;
|
|
}
|
|
|
|
export const IssuePropertyEstimates: React.FC<IIssuePropertyEstimates> = observer((props) => {
|
|
const { value, onChange, estimatePoints, disabled, hideDropdownArrow = false } = props;
|
|
|
|
return (
|
|
<EstimateSelect
|
|
value={value}
|
|
onChange={onChange}
|
|
estimatePoints={estimatePoints ?? undefined}
|
|
buttonClassName="h-5"
|
|
disabled={disabled}
|
|
hideDropdownArrow={hideDropdownArrow}
|
|
/>
|
|
);
|
|
});
|