diff options
author | Ashm Walia <40498934+ashmgarv@users.noreply.github.com> | 2020-10-22 15:34:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 18:34:21 -0400 |
commit | d0237cbb61e5c4d77c7b0cefc50891639646ee91 (patch) | |
tree | 5b0c1e33c1043887ad45c06a30173dc469d28228 /src/components/search/SearchResults.tsx | |
parent | 5db451725d6165de16ee11cda608a05e96e481f9 (diff) |
[TMA 236] Comments PR (#64)
* Added comments count and retrieve comments
* Working draft
* The one before cleanup
* Finally
* Added time icon and major refactoring
* Small fix for social media taggs
* Addressed review comments
Diffstat (limited to 'src/components/search/SearchResults.tsx')
-rw-r--r-- | src/components/search/SearchResults.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/search/SearchResults.tsx b/src/components/search/SearchResults.tsx index 16bff818..57db4167 100644 --- a/src/components/search/SearchResults.tsx +++ b/src/components/search/SearchResults.tsx @@ -1,6 +1,6 @@ import React from 'react'; import {ProfilePreviewType} from '../../types'; -import SearchResult from './SearchResult'; +import ProfilePreview from '../profile/ProfilePreview'; import {StyleSheet, View} from 'react-native'; interface SearchResultsProps { results: Array<ProfilePreviewType>; @@ -9,10 +9,11 @@ const SearchResults: React.FC<SearchResultsProps> = ({results}) => { return ( <View> {results.map((profilePreview) => ( - <SearchResult + <ProfilePreview style={styles.result} key={profilePreview.id} {...{profilePreview}} + isComment={false} /> ))} </View> |