mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: handled close button in estimate edit
This commit is contained in:
parent
e6fa881721
commit
430330bce7
@ -69,14 +69,16 @@ export const UpdateEstimateModal: FC<TUpdateEstimateModal> = observer((props) =>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{estimateEditType === EEstimateUpdateStages.SWITCH && (
|
||||
{[EEstimateUpdateStages.SWITCH, undefined].includes(estimateEditType) && (
|
||||
<div className="relative flex justify-end items-center gap-3 px-5 pt-5 border-t border-custom-border-100">
|
||||
<Button variant="neutral-primary" size="sm" onClick={handleClose}>
|
||||
Cancel
|
||||
</Button>
|
||||
<Button variant="primary" size="sm" onClick={handleSwitchEstimate}>
|
||||
Update
|
||||
</Button>
|
||||
{estimateEditType === EEstimateUpdateStages.SWITCH && (
|
||||
<Button variant="primary" size="sm" onClick={handleSwitchEstimate}>
|
||||
Update
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user