mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
fix color for header in list
This commit is contained in:
@@ -91,7 +91,12 @@ const SimpleList = ({
|
|||||||
justifyContent: 'space-between',
|
justifyContent: 'space-between',
|
||||||
paddingHorizontal: 12,
|
paddingHorizontal: 12,
|
||||||
height: 35,
|
height: 35,
|
||||||
backgroundColor: index === 1 ? colors.shade : colors.nav,
|
backgroundColor:
|
||||||
|
index === 1
|
||||||
|
? headerProps.color
|
||||||
|
? colors[headerProps.color]
|
||||||
|
: colors.shade
|
||||||
|
: colors.nav,
|
||||||
marginTop: index === 1 ? 0 : 5,
|
marginTop: index === 1 ? 0 : 5,
|
||||||
}}>
|
}}>
|
||||||
<TouchableWithoutFeedback
|
<TouchableWithoutFeedback
|
||||||
|
|||||||
@@ -196,6 +196,7 @@ export const Notes = ({route, navigation}) => {
|
|||||||
params.type === 'tag'
|
params.type === 'tag'
|
||||||
? '#' + params.title
|
? '#' + params.title
|
||||||
: params.title.slice(0, 1).toUpperCase() + params.title.slice(1),
|
: params.title.slice(0, 1).toUpperCase() + params.title.slice(1),
|
||||||
|
color: params.type === 'color' ? params.title.toLowerCase() : null,
|
||||||
}}
|
}}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
focused={() => navigation.isFocused()}
|
focused={() => navigation.isFocused()}
|
||||||
|
|||||||
Reference in New Issue
Block a user