chore: handled close button in estimate edit

This commit is contained in:
guru_sainath 2024-05-28 16:59:36 +05:30
parent e6fa881721
commit 430330bce7

View File

@ -69,14 +69,16 @@ export const UpdateEstimateModal: FC<TUpdateEstimateModal> = observer((props) =>
)} )}
</div> </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"> <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}> <Button variant="neutral-primary" size="sm" onClick={handleClose}>
Cancel Cancel
</Button> </Button>
<Button variant="primary" size="sm" onClick={handleSwitchEstimate}> {estimateEditType === EEstimateUpdateStages.SWITCH && (
Update <Button variant="primary" size="sm" onClick={handleSwitchEstimate}>
</Button> Update
</Button>
)}
</div> </div>
)} )}
</div> </div>