diff --git a/src/screens/TransactionHistoryScreen.tsx b/src/screens/TransactionHistoryScreen.tsx index 9a435f1..d85f320 100644 --- a/src/screens/TransactionHistoryScreen.tsx +++ b/src/screens/TransactionHistoryScreen.tsx @@ -1,13 +1,43 @@ +import { getTransactionsHistory } from "@/utils/requests/transactions"; +import TransactionInformationsItem from "@components/TransactionInformationsItem"; import BackgroundWithBeasyIconAndWhiteContentArea from "@components/backgrounds/BackgroundWithBeasyIconAndWhiteContentArea"; -import Text from "@components/bases/Text"; +import Box from "@components/bases/Box"; import { LOG } from "@logger"; +import { useQuery } from "@tanstack/react-query"; +import { ScrollView } from "react-native"; const log = LOG.extend("TransactionHistoryScreen"); const TransactionHistoryScreen = () => { + log.verbose("TransactionHistoryScreen"); + + const { data, isLoading, error } = useQuery({ + queryKey: ["transactionsHistory"], + queryFn: getTransactionsHistory, + }); + + console.info("Data", data); + return ( - Hello + + {data?.map((transaction) => ( + // {transaction.reference} + + + + ))} + ); };