diff options
author | Ivan Chen <ivan@tagg.id> | 2021-06-11 16:56:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-11 16:56:06 -0400 |
commit | 0fe146a5041d9d1a5cd7c13866034a695fda8307 (patch) | |
tree | 38b6c50c9a4c8c28f04ac2dd0fcb9e09e51c650f /src/components/notifications/Notification.tsx | |
parent | a2acb2e97d4ba30713c77e1e44d7c7a069f95034 (diff) | |
parent | 20b0ed121d60fdf034917397cb1ce75038b1cdba (diff) |
Merge pull request #452 from shravyaramesh/tma874-remove-unread-gradient
[TMA-874] Remove gradient for unread notifications
Diffstat (limited to 'src/components/notifications/Notification.tsx')
-rw-r--r-- | src/components/notifications/Notification.tsx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/components/notifications/Notification.tsx b/src/components/notifications/Notification.tsx index 3f9cc56a..fd1b11ac 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 { @@ -49,7 +47,6 @@ const Notification: React.FC<NotificationProps> = (props) => { verbage, notification_type, notification_object, - unread, timestamp, }, screenType, @@ -323,13 +320,7 @@ const Notification: React.FC<NotificationProps> = (props) => { </View> ); - return unread ? ( - <LinearGradient colors={BACKGROUND_GRADIENT_MAP[2]} useAngle angle={90}> - {renderContent()} - </LinearGradient> - ) : ( - renderContent() - ); + return renderContent(); }; const styles = StyleSheet.create({ |