Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Adding flyout to create detector from existing monitor through Monitor Details page #180

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
6 changes: 5 additions & 1 deletion public/components/Flyout/Flyout.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ const Flyout = ({ flyout, onClose }) => {
} = flyoutData;

const flyoutHeader = header && <EuiFlyoutHeader {...headerProps}>{header}</EuiFlyoutHeader>;
const flyoutBody = body && <EuiFlyoutBody {...bodyProps}>{body}</EuiFlyoutBody>;
const flyoutBody = body && (
<EuiFlyoutBody onClose={onClose} {...bodyProps}>
amitgalitz marked this conversation as resolved.
Show resolved Hide resolved
{body}
</EuiFlyoutBody>
);
const flyoutFooter = footer && <EuiFlyoutFooter {...footerProps}>{footer}</EuiFlyoutFooter>;

return (
Expand Down
4 changes: 3 additions & 1 deletion public/components/Flyout/__snapshots__/Flyout.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ exports[`Flyout renders 1`] = `
</h2>
</EuiTitle>
</EuiFlyoutHeader>
<EuiFlyoutBody>
<EuiFlyoutBody
onClose={[MockFunction]}
>
<EuiText
style={
Object {
Expand Down
Loading