mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: initial radio select in create estimate
This commit is contained in:
parent
ae9f1a7a94
commit
509989279b
@ -24,7 +24,7 @@ export const CreateEstimateModal: FC<TCreateEstimateModal> = observer((props) =>
|
|||||||
// hooks
|
// hooks
|
||||||
const { createEstimate } = useProjectEstimates();
|
const { createEstimate } = useProjectEstimates();
|
||||||
// states
|
// states
|
||||||
const [estimateSystem, setEstimateSystem] = useState<TEstimateSystemKeys>(EEstimateSystem.CATEGORIES);
|
const [estimateSystem, setEstimateSystem] = useState<TEstimateSystemKeys>(EEstimateSystem.POINTS);
|
||||||
const [estimatePoints, setEstimatePoints] = useState<TEstimatePointsObject[] | undefined>(undefined);
|
const [estimatePoints, setEstimatePoints] = useState<TEstimatePointsObject[] | undefined>(undefined);
|
||||||
const [buttonLoader, setButtonLoader] = useState(false);
|
const [buttonLoader, setButtonLoader] = useState(false);
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ export const CreateEstimateModal: FC<TCreateEstimateModal> = observer((props) =>
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (isOpen) {
|
if (isOpen) {
|
||||||
setEstimateSystem(EEstimateSystem.CATEGORIES);
|
setEstimateSystem(EEstimateSystem.POINTS);
|
||||||
setEstimatePoints(undefined);
|
setEstimatePoints(undefined);
|
||||||
}
|
}
|
||||||
}, [isOpen]);
|
}, [isOpen]);
|
||||||
@ -80,7 +80,7 @@ export const CreateEstimateModal: FC<TCreateEstimateModal> = observer((props) =>
|
|||||||
{estimatePoints && (
|
{estimatePoints && (
|
||||||
<div
|
<div
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setEstimateSystem(EEstimateSystem.CATEGORIES);
|
setEstimateSystem(EEstimateSystem.POINTS);
|
||||||
handleUpdatePoints(undefined);
|
handleUpdatePoints(undefined);
|
||||||
}}
|
}}
|
||||||
className="flex-shrink-0 cursor-pointer w-5 h-5 flex justify-center items-center"
|
className="flex-shrink-0 cursor-pointer w-5 h-5 flex justify-center items-center"
|
||||||
|
Loading…
Reference in New Issue
Block a user