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;