From c2b9ff4edacf78769d76866598759ecd91c6cc1d Mon Sep 17 00:00:00 2001 From: Christos Nasikas Date: Thu, 22 Jul 2021 13:37:27 +0300 Subject: [PATCH] [Alerting] Pass EuiIcon props to connectors logos (#106449) (#106499) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../components/builtin_action_types/jira/logo.tsx | 4 +++- .../builtin_action_types/pagerduty/logo.tsx | 4 +++- .../builtin_action_types/resilient/logo.tsx | 12 ++++++++++-- .../builtin_action_types/servicenow/logo.tsx | 5 +++-- .../builtin_action_types/swimlane/logo.tsx | 4 +++- .../components/builtin_action_types/teams/logo.tsx | 4 +++- .../components/builtin_action_types/types.ts | 3 +++ 7 files changed, 28 insertions(+), 8 deletions(-) diff --git a/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/jira/logo.tsx b/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/jira/logo.tsx index 2e8f1d5ef3bd7..f42b571408502 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/jira/logo.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/jira/logo.tsx @@ -6,8 +6,9 @@ */ import React from 'react'; +import { LogoProps } from '../types'; -const Logo = () => ( +const Logo = (props: LogoProps) => ( ( fill="none" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" + {...props} > diff --git a/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/pagerduty/logo.tsx b/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/pagerduty/logo.tsx index 20db34351c6b1..ab991651a8a52 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/pagerduty/logo.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/pagerduty/logo.tsx @@ -6,8 +6,9 @@ */ import React from 'react'; +import { LogoProps } from '../types'; -const Logo = () => ( +const Logo = (props: LogoProps) => ( ( xmlSpace="preserve" width="32" height="32" + {...props} > diff --git a/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/resilient/logo.tsx b/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/resilient/logo.tsx index 325893756e2f4..7b64a1330d401 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/resilient/logo.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/resilient/logo.tsx @@ -6,9 +6,17 @@ */ import React from 'react'; +import { LogoProps } from '../types'; -const Logo = () => ( - +const Logo = (props: LogoProps) => ( + + { +const Logo = (props: LogoProps) => { return ( { fill="none" stroke="null" vectorEffect="non-scaling-stroke" + {...props} > ( +const Logo = (props: LogoProps) => ( ( viewBox="0 0 32 32" enableBackground="new 0 0 32 32" xmlSpace="preserve" + {...props} > ; + +export type LogoProps = Omit;