[FIX] Here and all mentions shouldn't refer to users (#2137)
This commit is contained in:
parent
3b18712bc7
commit
1cadfb3d27
|
@ -666,17 +666,19 @@ exports[`Storyshots Markdown list Markdown 1`] = `
|
|||
|
||||
</Text>
|
||||
<Text
|
||||
onPress={[Function]}
|
||||
style={
|
||||
Array [
|
||||
Object {
|
||||
"backgroundColor": "#FF5B5A",
|
||||
"backgroundColor": "#E8F2FF",
|
||||
"color": "#ffffff",
|
||||
"fontFamily": "System",
|
||||
"fontSize": 16,
|
||||
"fontWeight": "500",
|
||||
"padding": 5,
|
||||
},
|
||||
Object {
|
||||
"backgroundColor": "#FF5B5A",
|
||||
},
|
||||
]
|
||||
}
|
||||
>
|
||||
|
@ -709,17 +711,19 @@ exports[`Storyshots Markdown list Markdown 1`] = `
|
|||
|
||||
</Text>
|
||||
<Text
|
||||
onPress={[Function]}
|
||||
style={
|
||||
Array [
|
||||
Object {
|
||||
"backgroundColor": "#FF5B5A",
|
||||
"backgroundColor": "#E8F2FF",
|
||||
"color": "#ffffff",
|
||||
"fontFamily": "System",
|
||||
"fontSize": 16,
|
||||
"fontWeight": "500",
|
||||
"padding": 5,
|
||||
},
|
||||
Object {
|
||||
"backgroundColor": "#FF5B5A",
|
||||
},
|
||||
]
|
||||
}
|
||||
>
|
||||
|
@ -896,17 +900,19 @@ exports[`Storyshots Markdown list Markdown 1`] = `
|
|||
|
||||
</Text>
|
||||
<Text
|
||||
onPress={[Function]}
|
||||
style={
|
||||
Array [
|
||||
Object {
|
||||
"backgroundColor": "#FF5B5A",
|
||||
"backgroundColor": "#E8F2FF",
|
||||
"color": "#ffffff",
|
||||
"fontFamily": "System",
|
||||
"fontSize": 16,
|
||||
"fontWeight": "500",
|
||||
"padding": 5,
|
||||
},
|
||||
Object {
|
||||
"backgroundColor": "#FF5B5A",
|
||||
},
|
||||
]
|
||||
}
|
||||
>
|
||||
|
@ -939,17 +945,19 @@ exports[`Storyshots Markdown list Markdown 1`] = `
|
|||
|
||||
</Text>
|
||||
<Text
|
||||
onPress={[Function]}
|
||||
style={
|
||||
Array [
|
||||
Object {
|
||||
"backgroundColor": "#FF5B5A",
|
||||
"backgroundColor": "#E8F2FF",
|
||||
"color": "#ffffff",
|
||||
"fontFamily": "System",
|
||||
"fontSize": 16,
|
||||
"fontWeight": "500",
|
||||
"padding": 5,
|
||||
},
|
||||
Object {
|
||||
"backgroundColor": "#FF5B5A",
|
||||
},
|
||||
]
|
||||
}
|
||||
>
|
||||
|
|
|
@ -11,11 +11,10 @@ const AtMention = React.memo(({
|
|||
}) => {
|
||||
let mentionStyle = { ...styles.mention, color: themes[theme].buttonText };
|
||||
if (mention === 'all' || mention === 'here') {
|
||||
mentionStyle = {
|
||||
...mentionStyle,
|
||||
...styles.mentionAll
|
||||
};
|
||||
} else if (mention === username) {
|
||||
return <Text style={[mentionStyle, styles.mentionAll, ...style]}>{mention}</Text>;
|
||||
}
|
||||
|
||||
if (mention === username) {
|
||||
mentionStyle = {
|
||||
...mentionStyle,
|
||||
backgroundColor: themes[theme].actionTintColor
|
||||
|
|
Loading…
Reference in New Issue