normalise tag name from search result
This commit is contained in:
parent
9bc5a1538a
commit
f714310681
1 changed files with 2 additions and 2 deletions
|
@ -142,7 +142,7 @@ class SearchPage extends React.PureComponent {
|
||||||
<FileListItem uri={currentUri} featuredResult style={searchStyle.featuredResultItem} navigation={navigation} />
|
<FileListItem uri={currentUri} featuredResult style={searchStyle.featuredResultItem} navigation={navigation} />
|
||||||
{showTagResult && (
|
{showTagResult && (
|
||||||
<TouchableOpacity style={searchStyle.tagResultItem} onPress={() => this.handleTagResultPressed(query)}>
|
<TouchableOpacity style={searchStyle.tagResultItem} onPress={() => this.handleTagResultPressed(query)}>
|
||||||
<Text style={searchStyle.tagResultTitle}>#{query}</Text>
|
<Text style={searchStyle.tagResultTitle}>#{query.toLowerCase()}</Text>
|
||||||
<Text style={searchStyle.tagResultDescription}>Explore content for this tag</Text>
|
<Text style={searchStyle.tagResultDescription}>Explore content for this tag</Text>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
)}
|
)}
|
||||||
|
@ -152,7 +152,7 @@ class SearchPage extends React.PureComponent {
|
||||||
|
|
||||||
handleTagResultPressed = tag => {
|
handleTagResultPressed = tag => {
|
||||||
const { navigation } = this.props;
|
const { navigation } = this.props;
|
||||||
navigation.navigate({ routeName: Constants.DRAWER_ROUTE_TAG, key: `tagPage`, params: { tag } });
|
navigation.navigate({ routeName: Constants.DRAWER_ROUTE_TAG, key: `tagPage`, params: { tag: tag.toLowerCase() } });
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
Loading…
Reference in a new issue