mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
fix for missing default logo in android
This commit is contained in:
parent
5fa4729251
commit
4bda553e32
@ -134,10 +134,10 @@ export function TopicItem({ item, focused, focus, hosting, sealed, sealKey, remo
|
|||||||
<View style={styles.wrapper}>
|
<View style={styles.wrapper}>
|
||||||
<TouchableOpacity activeOpacity={1} style={styles.item} onPress={focus}>
|
<TouchableOpacity activeOpacity={1} style={styles.item} onPress={focus}>
|
||||||
<View style={styles.header}>
|
<View style={styles.header}>
|
||||||
{ state.logo && (
|
{ state.logo !== 'avatar' && state.logo && (
|
||||||
<Image source={{ uri: state.logo }} style={{ width: 28, height: 28, borderRadius: 6 }} />
|
<Image source={{ uri: state.logo }} style={{ width: 28, height: 28, borderRadius: 6 }} />
|
||||||
)}
|
)}
|
||||||
{ !state.logo && (
|
{ (state.logo === 'avatar' || !state.logo) && (
|
||||||
<Image source={avatar} style={{ width: 28, height: 28, borderRadius: 6 }} />
|
<Image source={avatar} style={{ width: 28, height: 28, borderRadius: 6 }} />
|
||||||
)}
|
)}
|
||||||
<Text style={{ ...styles.name, color: state.nameSet ? Colors.text : Colors.grey }}>{ state.name }</Text>
|
<Text style={{ ...styles.name, color: state.nameSet ? Colors.text : Colors.grey }}>{ state.name }</Text>
|
||||||
|
Loading…
Reference in New Issue
Block a user