From 5abfe6636f2aec28403b4336e1749488d3a2f31e Mon Sep 17 00:00:00 2001 From: rayane-djouah <77965000+rayane-djouah@users.noreply.github.com> Date: Fri, 29 Dec 2023 12:42:19 +0100 Subject: [PATCH 1/2] fix default avatar not showing on native --- src/components/Icon/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/Icon/index.tsx b/src/components/Icon/index.tsx index 6b3dcf7f126a..88b4ef952478 100644 --- a/src/components/Icon/index.tsx +++ b/src/components/Icon/index.tsx @@ -63,7 +63,6 @@ function Icon({ const iconWidth = small ? variables.iconSizeSmall : width; const iconHeight = small ? variables.iconSizeSmall : height; const iconStyles = [StyleUtils.getWidthAndHeightStyle(width ?? 0, height), IconWrapperStyles, styles.pAbsolute, additionalStyles]; - const iconFill = fill ?? theme.icon; if (inline) { return ( @@ -76,7 +75,7 @@ function Icon({ src={src} width={iconWidth} height={iconHeight} - fill={iconFill} + fill={fill} hovered={hovered} pressed={pressed} contentFit={contentFit} @@ -95,7 +94,7 @@ function Icon({ src={src} width={iconWidth} height={iconHeight} - fill={iconFill} + fill={fill} hovered={hovered} pressed={pressed} contentFit={contentFit} From 08ef17a4d2791689bf0839954c43ae31d79c0ded Mon Sep 17 00:00:00 2001 From: rayane-djouah <77965000+rayane-djouah@users.noreply.github.com> Date: Fri, 29 Dec 2023 14:10:46 +0100 Subject: [PATCH 2/2] fix lint error --- src/components/Icon/index.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/Icon/index.tsx b/src/components/Icon/index.tsx index 88b4ef952478..732fe90deae2 100644 --- a/src/components/Icon/index.tsx +++ b/src/components/Icon/index.tsx @@ -3,7 +3,6 @@ import React from 'react'; import {StyleProp, View, ViewStyle} from 'react-native'; import ImageSVG from '@components/ImageSVG'; import useStyleUtils from '@hooks/useStyleUtils'; -import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; import variables from '@styles/variables'; import IconAsset from '@src/types/utils/IconAsset'; @@ -57,7 +56,6 @@ function Icon({ testID = '', contentFit = 'cover', }: IconProps) { - const theme = useTheme(); const StyleUtils = useStyleUtils(); const styles = useThemeStyles(); const iconWidth = small ? variables.iconSizeSmall : width;