diff options
author | Brian Kim <brian@tagg.id> | 2021-06-15 17:15:43 +0900 |
---|---|---|
committer | Brian Kim <brian@tagg.id> | 2021-06-15 17:15:43 +0900 |
commit | 4a422e43c6a6deaeff5d8fcc692138454653e4b9 (patch) | |
tree | 2e86ab879ea35e879581eb64be955d0e5481ff80 /src/components/notifications/Notification.tsx | |
parent | c57b4959c90cec90dd0936f75a9086a4430b66b1 (diff) | |
parent | db0678d647f774dcb1cd60513985d9b6fbd0e28b (diff) |
Merge with master
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({ |