diff --git a/src/app/(auth)/hashtag/[id].tsx b/src/app/(auth)/hashtag/[id].tsx index 836b08c..e4108b3 100644 --- a/src/app/(auth)/hashtag/[id].tsx +++ b/src/app/(auth)/hashtag/[id].tsx @@ -211,7 +211,9 @@ export default function Page() { {feed?.pages[0].length ? ( ( - {message} + + {message} + ) @@ -78,7 +80,13 @@ const AccountResultsTab = ({ accounts, isFetching, query }) => { onScrollBeginDrag={() => Keyboard.dismiss()} ListEmptyComponent={EmptyAccountsList} ListFooterComponent={() => - isFetching ? : + isFetching ? ( + + + + ) : ( + + ) } /> @@ -138,14 +146,19 @@ const HashtagResultsTab = ({ hashtags, isFetching, query }) => { onScrollBeginDrag={() => Keyboard.dismiss()} ListEmptyComponent={EmptyHashtagsList} ListFooterComponent={() => - isFetching ? : + isFetching ? ( + + + + ) : ( + + ) } /> ) } -// Component for Post results const PostResultsTab = ({ posts, isFetching, query }) => { const RenderPostItem = useCallback( ({ item }) => ( @@ -213,7 +226,13 @@ const PostResultsTab = ({ posts, isFetching, query }) => { onScrollBeginDrag={() => Keyboard.dismiss()} ListEmptyComponent={EmptyPostsList} ListFooterComponent={() => - isFetching ? : + isFetching ? ( + + + + ) : ( + + ) } /> @@ -227,7 +246,7 @@ export default function SearchScreen() { const { data, isLoading, isError, error, isFetching } = useQuery({ queryKey: ['search', query], - queryFn: () => searchQuery(query), + queryFn: () => searchQuery(query.toLowerCase()), keepPreviousData: true, }) @@ -236,7 +255,11 @@ export default function SearchScreen() { const posts = data?.filter((item) => item._type === 'status') || [] if (isLoading && !isFetching) { - return + return ( + + + + ) } if (isError) { @@ -269,7 +292,12 @@ export default function SearchScreen() { screenOptions={{ tabBarLabelStyle: { fontSize: 12, fontWeight: 'bold' }, tabBarIndicatorStyle: { backgroundColor: 'black' }, - tabBarStyle: { elevation: 0, shadowOpacity: 0, borderBottomColor: '#eee', borderBottomWidth: 1 }, + tabBarStyle: { + elevation: 0, + shadowOpacity: 0, + borderBottomColor: '#eee', + borderBottomWidth: 1, + }, }} > @@ -290,11 +318,11 @@ export default function SearchScreen() { /> )} - + {/* {() => ( )} - + */}