From 6b721b834c63fea5ebb9ff2cdd9d758a65bd2c31 Mon Sep 17 00:00:00 2001 From: Calin-Teodor Date: Wed, 6 Nov 2024 14:26:38 +0200 Subject: [PATCH] fix(base/icons): error regarding default props --- react/features/base/icons/components/Icon.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/react/features/base/icons/components/Icon.tsx b/react/features/base/icons/components/Icon.tsx index 7849f998e650..4e6af8f9371f 100644 --- a/react/features/base/icons/components/Icon.tsx +++ b/react/features/base/icons/components/Icon.tsx @@ -125,7 +125,7 @@ export const DEFAULT_SIZE = navigator.product === 'ReactNative' ? 36 : 22; export default function Icon(props: IProps) { const { alt, - className, + className = '', color, id, containerId, @@ -202,7 +202,3 @@ export default function Icon(props: IProps) { ); } - -Icon.defaultProps = { - className: '' -};