From 49109b6428e3364eccb3248c9b5d42c7f36b362d Mon Sep 17 00:00:00 2001 From: GleidsonDaniel Date: Mon, 20 May 2024 14:35:39 -0400 Subject: [PATCH] fix: update color --- .../message/Components/RightIcons/Pinned.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/containers/message/Components/RightIcons/Pinned.tsx b/app/containers/message/Components/RightIcons/Pinned.tsx index af045858c..5c2f87150 100644 --- a/app/containers/message/Components/RightIcons/Pinned.tsx +++ b/app/containers/message/Components/RightIcons/Pinned.tsx @@ -2,14 +2,10 @@ import React from 'react'; import { CustomIcon } from '../../../CustomIcon'; import styles from '../../styles'; -import { useTheme } from '../../../../theme'; -const Pinned = React.memo(({ pinned, testID }: { pinned?: boolean; testID?: string }) => { - const { colors } = useTheme(); - if (pinned) { - return ; - } +const Pinned = ({ pinned, testID }: { pinned?: boolean; testID?: string }): React.ReactElement | null => { + if (pinned) return ; return null; -}); +}; export default Pinned;