Prevent GitOps mode tooltip on 'Cancel' button hover in policies automations modals (#26998)

## For #26997 

<img width="1001" alt="Screenshot 2025-03-10 at 10 16 04 AM"
src="https://github.com/user-attachments/assets/bf23a3b0-d5b9-4d3c-8df6-dc3ebcf93a6d"
/>

- [x] Manual QA for all new/changed functionality

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
This commit is contained in:
jacobshandling 2025-03-10 11:45:26 -07:00 committed by GitHub
parent e4ef8cc6db
commit 93581e7cb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -214,11 +214,11 @@ function PoliciesPaginatedList(
{footer}
</div>
</div>
<GitOpsModeTooltipWrapper
position="right"
tipOffset={8}
renderChildren={(disableChildren) => (
<div className="modal-cta-wrap">
<div className="modal-cta-wrap">
<GitOpsModeTooltipWrapper
position="right"
tipOffset={8}
renderChildren={(disableChildren) => (
<TooltipWrapper
showArrow
position="top"
@ -237,12 +237,12 @@ function PoliciesPaginatedList(
Save
</Button>
</TooltipWrapper>
<Button onClick={onCancel} variant="inverse">
Cancel
</Button>
</div>
)}
/>
)}
/>
<Button onClick={onCancel} variant="inverse">
Cancel
</Button>
</div>
</div>
);
}