diff options
| author | Ivan Chen <ivan@tagg.id> | 2021-03-08 15:48:55 -0500 |
|---|---|---|
| committer | Ivan Chen <ivan@tagg.id> | 2021-03-08 15:48:55 -0500 |
| commit | 7657657c2b8a28b96962ac4fa816bb1625a36e4b (patch) | |
| tree | f5233751e98ee871534473330cf59b518c5c0009 /src/components/search/SearchResultCell.tsx | |
| parent | 7e5f9c63360f8c4505bb414384e13f8c0f7576e4 (diff) | |
added support for badges
Diffstat (limited to 'src/components/search/SearchResultCell.tsx')
| -rw-r--r-- | src/components/search/SearchResultCell.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/search/SearchResultCell.tsx b/src/components/search/SearchResultCell.tsx index 0f6f5b7d..b6ce55d0 100644 --- a/src/components/search/SearchResultCell.tsx +++ b/src/components/search/SearchResultCell.tsx @@ -17,11 +17,13 @@ import { } from '../../utils/users'; interface SearchResults { + type: 'badges' | 'categories' | 'users'; profileData: ProfilePreviewType; loggedInUser: UserType; } const SearchResultsCell: React.FC<SearchResults> = ({ + type, profileData: { id, name, @@ -133,6 +135,7 @@ const SearchResultsCell: React.FC<SearchResults> = ({ style={styles.cellContainer} onPress={() => navigation.navigate('DiscoverUsers', { + type, searchCategory: {id, name}, }) }> |
