From 4024bf5c7ec0e01f2bae9f65030359c8da69b8f3 Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Thu, 27 May 2021 11:35:02 -0700 Subject: Remove linear gradient --- src/components/notifications/Notification.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/components/notifications/Notification.tsx') diff --git a/src/components/notifications/Notification.tsx b/src/components/notifications/Notification.tsx index 3f9cc56a..dff65255 100644 --- a/src/components/notifications/Notification.tsx +++ b/src/components/notifications/Notification.tsx @@ -323,13 +323,7 @@ const Notification: React.FC = (props) => { ); - return unread ? ( - - {renderContent()} - - ) : ( - renderContent() - ); + return renderContent(); }; const styles = StyleSheet.create({ -- cgit v1.2.3-70-g09d2 From fddb06e43c395f331b67222a0ca86625261875bb Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Thu, 27 May 2021 11:40:47 -0700 Subject: Remove unused imports --- src/components/notifications/Notification.tsx | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/components/notifications/Notification.tsx') diff --git a/src/components/notifications/Notification.tsx b/src/components/notifications/Notification.tsx index dff65255..0f22599e 100644 --- a/src/components/notifications/Notification.tsx +++ b/src/components/notifications/Notification.tsx @@ -2,9 +2,7 @@ import {useNavigation} from '@react-navigation/native'; import React, {useEffect, useState} from 'react'; import {Alert, Image, StyleSheet, Text, View} from 'react-native'; import {TouchableWithoutFeedback} from 'react-native-gesture-handler'; -import LinearGradient from 'react-native-linear-gradient'; import {useDispatch, useStore} from 'react-redux'; -import {BACKGROUND_GRADIENT_MAP} from '../../constants'; import {ERROR_DELETED_OBJECT} from '../../constants/strings'; import {loadImageFromURL} from '../../services'; import { -- cgit v1.2.3-70-g09d2 From 20b0ed121d60fdf034917397cb1ce75038b1cdba Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Thu, 27 May 2021 11:41:48 -0700 Subject: Remove unused variable --- src/components/notifications/Notification.tsx | 1 - 1 file changed, 1 deletion(-) (limited to 'src/components/notifications/Notification.tsx') diff --git a/src/components/notifications/Notification.tsx b/src/components/notifications/Notification.tsx index 0f22599e..fd1b11ac 100644 --- a/src/components/notifications/Notification.tsx +++ b/src/components/notifications/Notification.tsx @@ -47,7 +47,6 @@ const Notification: React.FC = (props) => { verbage, notification_type, notification_object, - unread, timestamp, }, screenType, -- cgit v1.2.3-70-g09d2