From f870ea0d7679737ba1a1e5e914a6f772111aac69 Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Wed, 21 Jun 2023 22:27:57 +0200 Subject: [PATCH] fix: forward remaining properties in additional icon component Signed-off-by: Tilman Vatteroth --- .../common/icons/additional/icon-discourse.tsx | 11 +++++++++-- .../common/icons/additional/icon-gitlab.tsx | 11 +++++++++-- .../common/icons/additional/icon-matrix-org.tsx | 11 +++++++++-- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/common/icons/additional/icon-discourse.tsx b/frontend/src/components/common/icons/additional/icon-discourse.tsx index 0a7c2cd98..a999e593c 100644 --- a/frontend/src/components/common/icons/additional/icon-discourse.tsx +++ b/frontend/src/components/common/icons/additional/icon-discourse.tsx @@ -15,9 +15,16 @@ import type { IconProps } from 'react-bootstrap-icons' * @param title custom title for the SVG */ export const IconDiscourse = React.forwardRef( - ({ color = 'currentColor', size = '1em', title }, ref) => { + ({ color = 'currentColor', size = '1em', title, ...props }, ref) => { return ( - + {title ? {title} : null} diff --git a/frontend/src/components/common/icons/additional/icon-gitlab.tsx b/frontend/src/components/common/icons/additional/icon-gitlab.tsx index 55f62b264..29e92cdfe 100644 --- a/frontend/src/components/common/icons/additional/icon-gitlab.tsx +++ b/frontend/src/components/common/icons/additional/icon-gitlab.tsx @@ -15,9 +15,16 @@ import type { IconProps } from 'react-bootstrap-icons' * @param title custom title for the SVG */ export const IconGitlab = React.forwardRef( - ({ color = 'currentColor', size = '1em', title }, ref) => { + ({ color = 'currentColor', size = '1em', title, ...props }, ref) => { return ( - + {title ? {title} : null} diff --git a/frontend/src/components/common/icons/additional/icon-matrix-org.tsx b/frontend/src/components/common/icons/additional/icon-matrix-org.tsx index 8aa3f037e..22b4ed06e 100644 --- a/frontend/src/components/common/icons/additional/icon-matrix-org.tsx +++ b/frontend/src/components/common/icons/additional/icon-matrix-org.tsx @@ -15,9 +15,16 @@ import type { IconProps } from 'react-bootstrap-icons' * @param title custom title for the SVG */ export const IconMatrixOrg = React.forwardRef( - ({ color = 'currentColor', size = '1em', title }, ref) => { + ({ color = 'currentColor', size = '1em', title, ...props }, ref) => { return ( - + {title ? {title} : null}