From 006c81bba8c8aba462b8fe57986226ba65d0fedd Mon Sep 17 00:00:00 2001 From: semd Date: Fri, 23 Apr 2021 17:03:52 +0200 Subject: [PATCH] prettier configured --- .../public/detections/components/rules/query_bar/index.tsx | 5 ++++- .../components/flyout/add_timeline_button/index.tsx | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/security_solution/public/detections/components/rules/query_bar/index.tsx b/x-pack/plugins/security_solution/public/detections/components/rules/query_bar/index.tsx index 6c96c92542b66..cccdb6f509788 100644 --- a/x-pack/plugins/security_solution/public/detections/components/rules/query_bar/index.tsx +++ b/x-pack/plugins/security_solution/public/detections/components/rules/query_bar/index.tsx @@ -253,7 +253,10 @@ export const QueryBarDefineRule = ({ } }; - const actionTimelineToHide = useMemo(() => ['duplicate', 'createFrom'], []); + const actionTimelineToHide = useMemo( + () => ['duplicate', 'createFrom'], + [] + ); return ( <> diff --git a/x-pack/plugins/security_solution/public/timelines/components/flyout/add_timeline_button/index.tsx b/x-pack/plugins/security_solution/public/timelines/components/flyout/add_timeline_button/index.tsx index 7c30fc41e0476..71d805dbd873e 100644 --- a/x-pack/plugins/security_solution/public/timelines/components/flyout/add_timeline_button/index.tsx +++ b/x-pack/plugins/security_solution/public/timelines/components/flyout/add_timeline_button/index.tsx @@ -86,7 +86,9 @@ const AddTimelineButtonComponent: React.FC = ({ - {showTimelineModal ? : null} + {showTimelineModal ? ( + + ) : null} ); };