diff --git a/src/screens/TransactionHistoryScreen.tsx b/src/screens/TransactionHistoryScreen.tsx index d85f320..faa2b30 100644 --- a/src/screens/TransactionHistoryScreen.tsx +++ b/src/screens/TransactionHistoryScreen.tsx @@ -1,17 +1,16 @@ import { getTransactionsHistory } from "@/utils/requests/transactions"; import TransactionInformationsItem from "@components/TransactionInformationsItem"; import BackgroundWithBeasyIconAndWhiteContentArea from "@components/backgrounds/BackgroundWithBeasyIconAndWhiteContentArea"; -import Box from "@components/bases/Box"; import { LOG } from "@logger"; import { useQuery } from "@tanstack/react-query"; -import { ScrollView } from "react-native"; +import { RefreshControl, ScrollView } from "react-native"; const log = LOG.extend("TransactionHistoryScreen"); const TransactionHistoryScreen = () => { log.verbose("TransactionHistoryScreen"); - const { data, isLoading, error } = useQuery({ + const { data, isLoading, error, refetch } = useQuery({ queryKey: ["transactionsHistory"], queryFn: getTransactionsHistory, }); @@ -21,21 +20,20 @@ const TransactionHistoryScreen = () => { return ( } + contentContainerStyle={{ flex: 1, gap: 5, flexDirection: "column" }} showsVerticalScrollIndicator={false} > {data?.map((transaction) => ( // {transaction.reference} - - - + ))}