aboutsummaryrefslogtreecommitdiff
path: root/src/components/search/SearchResults.tsx
diff options
context:
space:
mode:
authorLeon Jiang <35908040+leonyjiang@users.noreply.github.com>2021-04-03 15:29:56 -0400
committerLeon Jiang <35908040+leonyjiang@users.noreply.github.com>2021-04-03 15:29:56 -0400
commit268c93e705e3d3808ab5353497354f390230d29d (patch)
tree2159132a21f9eb5acd80a9cc882c2893b7e81f49 /src/components/search/SearchResults.tsx
parent0415067b5199e0bbbdb0cbef709b3c1993bb02c8 (diff)
Fix search bar animation & search screen styles
Diffstat (limited to 'src/components/search/SearchResults.tsx')
-rw-r--r--src/components/search/SearchResults.tsx14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/components/search/SearchResults.tsx b/src/components/search/SearchResults.tsx
index ef518d8b..a73d0b40 100644
--- a/src/components/search/SearchResults.tsx
+++ b/src/components/search/SearchResults.tsx
@@ -1,18 +1,10 @@
import React from 'react';
-import {
- ProfilePreviewType,
- PreviewType,
- ScreenType,
- CategoryPreviewType,
-} from '../../types';
-import {View} from 'react-native';
+import {ProfilePreviewType, CategoryPreviewType} from '../../types';
import SearchResultsCell from './SearchResultCell';
import {useSelector} from 'react-redux';
import {RootState} from '../../store/rootReducer';
interface SearchResultsProps {
results: ProfilePreviewType[];
- previewType: PreviewType;
- screenType: ScreenType;
categories: CategoryPreviewType[];
}
const SearchResults: React.FC<SearchResultsProps> = ({results, categories}) => {
@@ -22,7 +14,7 @@ const SearchResults: React.FC<SearchResultsProps> = ({results, categories}) => {
*/
const {user: loggedInUser} = useSelector((state: RootState) => state.user);
return (
- <View>
+ <>
{categories
.slice(0)
.reverse()
@@ -43,7 +35,7 @@ const SearchResults: React.FC<SearchResultsProps> = ({results, categories}) => {
{...{loggedInUser}}
/>
))}
- </View>
+ </>
);
};