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>
{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>