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:
@@ -15,6 +15,7 @@ export const ConfirmModal = ({
|
||||
<AlertModal
|
||||
className="confirm-modal"
|
||||
title={title}
|
||||
onClose={() => ({})}
|
||||
isOpen={isOpen}
|
||||
footerNode={(
|
||||
<ActionRow>
|
||||
|
||||
@@ -29,6 +29,7 @@ export const InfoPopover = ({ children }) => (
|
||||
src={InfoOutline}
|
||||
alt="criterion info"
|
||||
iconAs={Icon}
|
||||
onClick={() => {}}
|
||||
/>
|
||||
</OverlayTrigger>
|
||||
);
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user