mirror of
https://github.com/zhigang1992/devhub.git
synced 2026-06-16 10:24:24 +08:00
Change selected card style
This commit is contained in:
@@ -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',
|
||||
},
|
||||
]}
|
||||
>
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
]}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user