diff --git a/components/home/Footer.tsx b/components/home/Footer.tsx index d909ce8..a8b6ada 100644 --- a/components/home/Footer.tsx +++ b/components/home/Footer.tsx @@ -2,6 +2,8 @@ import { motion, HTMLMotionProps } from 'framer-motion'; import React from 'react'; +import { useEffect , useState} from "react"; +import axios from "axios"; const AnimatedIcon: React.FC> = ({ children, ...props }) => { return ( @@ -18,6 +20,22 @@ const AnimatedIcon: React.FC> = ({ children, ...props }) }; export default function Footer() { + const [CA, setCA] = useState(""); + + useEffect(() => { + axios.get("https://catools.dev3vds1.link/get/dotbase") + .then(response => { + const data = response.data + if (data) { + // console.log(`this is the data addr : ${data.address}`) + setCA(data[0].address); + + } + }) + .catch(error => { + console.error("Error fetching CA:", error); + }); + }, []); return (