From f95951acfbf1f4ebc8a13ca5db2cd343bd0d01db Mon Sep 17 00:00:00 2001 From: Davis Plumlee <56367316+dplumlee@users.noreply.github.com> Date: Thu, 23 Jul 2020 16:49:55 -0400 Subject: [PATCH 01/96] [Security Solution][Detections] Fixes exception modal bugs (#73119) --- .../exceptions/add_exception_modal/index.tsx | 10 ++-- .../common/components/exceptions/helpers.tsx | 52 ++++++++----------- .../alerts_table/default_config.tsx | 1 + 3 files changed, 30 insertions(+), 33 deletions(-) diff --git a/x-pack/plugins/security_solution/public/common/components/exceptions/add_exception_modal/index.tsx b/x-pack/plugins/security_solution/public/common/components/exceptions/add_exception_modal/index.tsx index 0d93a1ea88714..d2fec1f34755f 100644 --- a/x-pack/plugins/security_solution/public/common/components/exceptions/add_exception_modal/index.tsx +++ b/x-pack/plugins/security_solution/public/common/components/exceptions/add_exception_modal/index.tsx @@ -296,9 +296,13 @@ export const AddExceptionModal = memo(function AddExceptionModal({
{i18n.ADD_EXCEPTION_FETCH_ERROR}
)} - {fetchOrCreateListError === false && isLoadingExceptionList === true && ( - = P extends CanvasServiceProvider (content: Content ) => void;
+ removeContent: (contentId: string) => void;
+ closeFlyout: () => void;
+}
+
+interface Content {
+ id: string;
+ Component: React.FunctionComponent ;
+ props?: P;
+ flyoutProps?: { [key: string]: any };
+ cleanUpFunc?: () => void;
+}
+
+const FlyoutMultiContentContext = createContext
+
+
+