Skip to content

Commit

Permalink
feat(AddSystemsToGroupModal): Remove unnecessary onClick function cre…
Browse files Browse the repository at this point in the history
…ations
  • Loading branch information
LiorKGOW authored and gkarat committed Mar 26, 2024
1 parent 3cef678 commit 6c2368a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/components/InventoryGroups/Modals/AddSystemsToGroupModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ const AddSystemsToGroupModal = ({
setConfirmationModalOpen(false);
setSystemSelectModalOpen(true); // switch back to the systems table modal
}}
onCancel={() => handleModalClose()}
onCancel={handleModalClose}
hostsNumber={alreadyHasGroup.length}
/>
{/** hosts selection modal */}
Expand All @@ -214,7 +214,7 @@ const AddSystemsToGroupModal = ({
</Flex>
}
isOpen={systemsSelectModalOpen}
onClose={() => handleModalClose()}
onClose={handleModalClose}
footer={
<Flex direction={{ default: 'column' }} style={{ width: '100%' }}>
{showWarning && (
Expand Down Expand Up @@ -244,11 +244,7 @@ const AddSystemsToGroupModal = ({
>
Add systems
</Button>
<Button
key="cancel"
variant="link"
onClick={() => handleModalClose()}
>
<Button key="cancel" variant="link" onClick={handleModalClose}>
Cancel
</Button>
</FlexItem>
Expand Down

0 comments on commit 6c2368a

Please sign in to comment.