diff --git a/tickity-rn-app/app/(tabs)/account.tsx b/tickity-rn-app/app/(tabs)/account.tsx index 5c2fa02..3bbd2f1 100644 --- a/tickity-rn-app/app/(tabs)/account.tsx +++ b/tickity-rn-app/app/(tabs)/account.tsx @@ -102,13 +102,6 @@ export default function AccountScreen() { /> } > - - Account - - Manage your wallet and preferences - - - {account ? ( {/* Wallet Info Card */} diff --git a/tickity-rn-app/app/(tabs)/favourites.tsx b/tickity-rn-app/app/(tabs)/favourites.tsx index 5bd90d2..d26b44e 100644 --- a/tickity-rn-app/app/(tabs)/favourites.tsx +++ b/tickity-rn-app/app/(tabs)/favourites.tsx @@ -1,28 +1,122 @@ +import AnimatedNFTCard from "@/components/AnimatedNFTCard"; +import useGetUserNFTs from "@/hooks/useGetUserNFTs"; +import { LinearGradient } from "expo-linear-gradient"; import { router } from "expo-router"; -import React, { useState } from "react"; -import { Button, StyleSheet, Text, View } from "react-native"; +import React from "react"; +import { + ActivityIndicator, + Dimensions, + FlatList, + RefreshControl, + StyleSheet, + Text, + View, +} from "react-native"; + +const { width } = Dimensions.get("window"); const Favourites = () => { - const [showAR, setShowAR] = useState(false); + const { nfts, hasNFTs, nftCount, isLoading, error, refetch } = + useGetUserNFTs(); - return ( - - Favourites + const renderNFTCard = ({ item, index }: { item: any; index: number }) => ( + { + // Navigate to NFT details or event page + router.push(`/yourevent/${item.eventAddress}`); + }} + /> + ); + + const renderEmptyState = () => ( + + + + 🎫 + No NFTs Yet + + Your minted NFTs will appear here + + + Purchase tickets to events and they'll be displayed as beautiful + NFTs in your collection + + + + + ); + + const renderHeader = () => ( + + My NFT Collection - Here you'll find all your favourite events in one place + {hasNFTs + ? `You have ${nftCount} minted NFT${nftCount !== 1 ? "s" : ""}` + : "Your minted NFTs will appear here"} - - Save events you love and access them quickly whenever you need them - - -