fix: add onClose methods (dummies) to IconButton and AlertModal

these 2 snapshots have anonymous functions... trying to decide
if those should be made classes to notate the stub method...
This commit is contained in:
Ben Warzeski
2021-10-26 12:17:41 -04:00
parent 3754ca12c3
commit 19f5181ecf
4 changed files with 5 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ export const ConfirmModal = ({
<AlertModal
className="confirm-modal"
title={title}
onClose={() => ({})}
isOpen={isOpen}
footerNode={(
<ActionRow>

View File

@@ -29,6 +29,7 @@ export const InfoPopover = ({ children }) => (
src={InfoOutline}
alt="criterion info"
iconAs={Icon}
onClick={() => {}}
/>
</OverlayTrigger>
);

View File

@@ -20,6 +20,7 @@ exports[`ConfirmModal snapshot: closed 1`] = `
</ActionRow>
}
isOpen={false}
onClose={[Function]}
title="test-title"
>
<p>
@@ -48,6 +49,7 @@ exports[`ConfirmModal snapshot: open 1`] = `
</ActionRow>
}
isOpen={true}
onClose={[Function]}
title="test-title"
>
<p>

View File

@@ -21,6 +21,7 @@ exports[`Info Popover Component snapshot 1`] = `
alt="criterion info"
className="criteria-help-icon"
iconAs={[MockFunction Icon]}
onClick={[Function]}
src={[MockFunction icons.InfoOutline]}
/>
</OverlayTrigger>