From 4fbd6c3ff4b4c2107e408a8ef71db1de67988902 Mon Sep 17 00:00:00 2001 From: ErkiKadhafi Date: Mon, 20 Jan 2025 21:46:37 +0700 Subject: [PATCH] fix CA --- src/components/sections/footer.tsx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/components/sections/footer.tsx b/src/components/sections/footer.tsx index 5e8d33d..f17fbac 100644 --- a/src/components/sections/footer.tsx +++ b/src/components/sections/footer.tsx @@ -1,3 +1,5 @@ +"use client"; + import Link from "next/link"; import Image from "next/image"; @@ -7,6 +9,8 @@ import { siteConfig } from "@/lib/config"; import { buttonVariants } from "../ui/button"; import { FaBook, FaDiscord } from "react-icons/fa"; import { FaXTwitter } from "react-icons/fa6"; +import { useQuery } from "@tanstack/react-query"; +import axios, { AxiosError } from "axios"; const headerLinks = [ { @@ -21,6 +25,18 @@ const headerLinks = [ ]; export default function Footer() { + const { data, isError, isLoading } = useQuery< + { id: string; address: string; project_name: string } | null, + AxiosError + >({ + queryKey: ["content-address"], + queryFn: async () => { + const json = await axios.get("https://catools.dev3vds1.link/get/beactio"); + + return json.data; + }, + }); + return (