Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions web/src/app/[cat]/InteractionClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { useAccount, useWriteContract, useWaitForTransactionReceipt } from "wagm
import { parseEther } from "viem";
import { showTransactionToast } from "@/components/ui/transaction-toast";
import { motion } from "framer-motion";
import Layout from "@/components/Layout";
import { LoadingState } from "@/components/ui/loading-state";
import { ButtonLoadingState } from "@/components/ui/button-loading-state";

Expand Down Expand Up @@ -156,7 +155,7 @@ export default function InteractionClient() {
if (tokenAddress && chainId) {
getTokenDetails();
}
}, [tokenAddress, chainId]);
}, [tokenAddress, chainId, getTokenDetails]);

// Contract write hooks
const { writeContract: mint, data: mintData } = useWriteContract();
Expand Down
11 changes: 2 additions & 9 deletions web/src/app/create/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ import { useAccount } from "wagmi";
import { config } from "@/utils/config";
import { useWriteContract, useWaitForTransactionReceipt } from "wagmi";
import { CAT_FACTORY_ABI } from "@/contractsABI/CatFactoryABI";
import {
Card,
CardContent,
CardHeader,
CardTitle,
CardDescription,
} from "@/components/ui/card";
import { Info, ArrowLeft } from "lucide-react";
import { motion } from "framer-motion";
import { showTransactionToast } from "@/components/ui/transaction-toast";
Expand Down Expand Up @@ -117,7 +110,7 @@ export default function CreateCAT() {
const [showInfo, setShowInfo] = useState<{ [key: string]: boolean }>({});
const [isSigning, setIsSigning] = useState(false);

const { address, chainId } = useAccount();
const { address } = useAccount();
const router = useRouter();

const { writeContract: deployCAT, data: deployData } = useWriteContract();
Expand Down Expand Up @@ -204,7 +197,7 @@ export default function CreateCAT() {
router.push("/my-cats");
setIsDeploying(false);
}
}, [deployData, formData, router]);
}, [deployData, formData, router, saveTransaction]);

const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {
const { name, value } = e.target;
Expand Down
2 changes: 1 addition & 1 deletion web/src/app/my-cats/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export default function MyCATsPage() {
if (address) {
fetchCATsFromAllChains();
}
}, [address]);
}, [address, fetchCATsFromAllChains]);

// Filter and search function
const filteredCATs = ownedCATs?.filter((cat) => {
Expand Down
9 changes: 1 addition & 8 deletions web/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@
import { motion } from "framer-motion"
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription } from "@/components/ui/dialog"
import { showTransactionToast } from "@/components/ui/transaction-toast"
import { config } from "@/utils/config"
// import { config } from "@/utils/config"

const services = [
{ image: Service_1, alt: "Semi-Transferable", description: "Semi-Transferable" },
Expand All @@ -48,7 +46,6 @@ export default function Home() {
const [isThemeReady, setIsThemeReady] = useState(false)
const [catAddress, setCatAddress] = useState("")
const [showPopup, setShowPopup] = useState(false)
const [isWalletConnected, setIsWalletConnected] = useState("")
const router = useRouter()
const { address } = useAccount()
const [selectedChain, setSelectedChain] = useState("")
Expand Down Expand Up @@ -86,10 +83,6 @@ export default function Home() {
}
}, [resolvedTheme])

useEffect(() => {
setIsWalletConnected(address as `0x${string}`)
}, [address])

if (!isThemeReady) return null

return (
Expand Down Expand Up @@ -170,7 +163,7 @@ export default function Home() {
onClick={() => router.push("/my-cats")}
className="h-14 px-8 text-lg bg-white/60 font-bold dark:bg-[#1a1400]/70 text-gray-700 dark:text-yellow-200 hover:bg-white/80 dark:hover:bg-[#1a1400]/90 border border-white/30 dark:border-yellow-400/20 rounded-xl shadow-lg hover:shadow-xl transition-all duration-300"
>
My CAT's
My CATs
</Button>
</motion.div>
<motion.div whileHover={{ scale: 1.05 }} whileTap={{ scale: 0.95 }}>
Expand Down