From 032c3a97fa3cdce9f6d674571b833127dc231fab Mon Sep 17 00:00:00 2001 From: pinocchio-life-like Date: Sat, 25 May 2024 18:54:58 +0300 Subject: [PATCH] test done and push --- packages/app/screens/feed/Feed.tsx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/app/screens/feed/Feed.tsx b/packages/app/screens/feed/Feed.tsx index 55842d6db0..070046b6e1 100644 --- a/packages/app/screens/feed/Feed.tsx +++ b/packages/app/screens/feed/Feed.tsx @@ -1,6 +1,7 @@ -import React, { useMemo, useState } from 'react'; +import React, { useEffect, useMemo, useState } from 'react'; import { FlatList, View, Platform } from 'react-native'; import Card from '../../components/feed/FeedCard'; +import { usefetchTrips } from 'app/hooks/trips'; import { useRouter } from 'app/hooks/router'; import { fuseSearch } from '../../utils/fuseSearch'; import useCustomStyles from 'app/hooks/useCustomStyles'; @@ -37,13 +38,6 @@ interface FeedProps { feedType?: string; } -interface UseFeedResult { - data: any[] | null; - error: any | null; - isLoading: boolean; - refetch: () => void; -} - const Feed = ({ feedType = 'public' }: FeedProps) => { const router = useRouter(); @@ -66,7 +60,7 @@ const Feed = ({ feedType = 'public' }: FeedProps) => { ownerId, feedType, selectedTypes, - ) as UseFeedResult; + ); const onRefresh = () => { setRefreshing(true);