Change selected card style

This commit is contained in:
Bruno Lemos
2019-03-23 05:20:55 -03:00
parent 1d8695d0c1
commit 0ee759efae
2 changed files with 12 additions and 6 deletions

View File

@@ -187,9 +187,8 @@ export const EventCard = React.memo((props: EventCardProps) => {
const smallLeftColumn = false
const backgroundThemeColor =
(isSelected && 'backgroundColorLess2') ||
(isRead && 'backgroundColorDarker1') ||
'backgroundColor'
// (isSelected && 'backgroundColorLess2') ||
(isRead && 'backgroundColorDarker1') || 'backgroundColor'
return (
<SpringAnimatedView
@@ -199,6 +198,10 @@ export const EventCard = React.memo((props: EventCardProps) => {
styles.container,
{
backgroundColor: springAnimatedTheme[backgroundThemeColor],
borderWidth: 1,
borderColor: isSelected
? springAnimatedTheme.primaryBackgroundColor
: 'transparent',
},
]}
>

View File

@@ -200,9 +200,8 @@ export const NotificationCard = React.memo((props: NotificationCardProps) => {
const smallLeftColumn = false
const backgroundThemeColor =
(isSelected && 'backgroundColorLess2') ||
(isRead && 'backgroundColorDarker1') ||
'backgroundColor'
// (isSelected && 'backgroundColorLess2') ||
(isRead && 'backgroundColorDarker1') || 'backgroundColor'
return (
<SpringAnimatedView
@@ -212,6 +211,10 @@ export const NotificationCard = React.memo((props: NotificationCardProps) => {
styles.container,
{
backgroundColor: springAnimatedTheme[backgroundThemeColor],
borderWidth: 1,
borderColor: isSelected
? springAnimatedTheme.primaryBackgroundColor
: 'transparent',
},
]}
>