diff options
| author | Ivan Chen <ivan@tagg.id> | 2021-03-12 14:40:07 -0500 |
|---|---|---|
| committer | Ivan Chen <ivan@tagg.id> | 2021-03-12 14:40:07 -0500 |
| commit | ce249470ea656e78df3f2c744f032aa90659cb91 (patch) | |
| tree | 8f5a20c488ab9da58baf29500fdb1ad3dbb0b5c9 /src/components/search/SearchResultCell.tsx | |
| parent | 4a05b26c5c32980ac18c832cc4dd74c6c93922a8 (diff) | |
| parent | 3585aacbcfe148fa7ce1ed5d3d3fd33ac784be48 (diff) | |
Merge branch 'master' into tma695-revamp-discover-screen
# Conflicts:
# src/screens/search/SearchScreen.tsx
Diffstat (limited to 'src/components/search/SearchResultCell.tsx')
| -rw-r--r-- | src/components/search/SearchResultCell.tsx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/components/search/SearchResultCell.tsx b/src/components/search/SearchResultCell.tsx index e0351d96..9a8216e5 100644 --- a/src/components/search/SearchResultCell.tsx +++ b/src/components/search/SearchResultCell.tsx @@ -7,19 +7,22 @@ import {ERROR_UNABLE_TO_VIEW_PROFILE} from '../../constants/strings'; import {loadImageFromURL} from '../../services'; import {RootState} from '../../store/rootReducer'; import { + CategoryPreviewType, ProfilePreviewType, ScreenType, UserType, - CategoryPreviewType, } from '../../types'; -import {normalize, SCREEN_WIDTH} from '../../utils'; import { - addUserToRecentlyViewed, + addCategoryToRecentlySearched, + addUserToRecentlySearched, + normalize, + SCREEN_WIDTH, +} from '../../utils'; +import { checkIfUserIsBlocked, defaultUserProfile, fetchUserX, userXInStore, - addCategoryToRecentlySearched, } from '../../utils/users'; interface SearchResults { @@ -72,7 +75,7 @@ const SearchResultsCell: React.FC<SearchResults> = ({ return; } - addUserToRecentlyViewed({ + addUserToRecentlySearched({ id, first_name, last_name, @@ -169,6 +172,7 @@ const styles = StyleSheet.create({ flexDirection: 'row', paddingHorizontal: 25, paddingVertical: 15, + width: SCREEN_WIDTH, }, imageContainer: { width: SCREEN_WIDTH * 0.112, |
