aboutsummaryrefslogtreecommitdiff
path: root/src/components/search/SearchResultCell.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-03-12 14:40:07 -0500
committerIvan Chen <ivan@tagg.id>2021-03-12 14:40:07 -0500
commitce249470ea656e78df3f2c744f032aa90659cb91 (patch)
tree8f5a20c488ab9da58baf29500fdb1ad3dbb0b5c9 /src/components/search/SearchResultCell.tsx
parent4a05b26c5c32980ac18c832cc4dd74c6c93922a8 (diff)
parent3585aacbcfe148fa7ce1ed5d3d3fd33ac784be48 (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.tsx14
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,