From 688a1c8276419093c4604cd8ae7591cb6831bcbf Mon Sep 17 00:00:00 2001 From: yoginawaka <113622768+yoginawaka@users.noreply.github.com> Date: Wed, 5 Feb 2025 11:03:15 +0200 Subject: [PATCH] Update HeroSection.tsx --- components/home/HeroSection.tsx | 52 ++++++++++++++++----------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/components/home/HeroSection.tsx b/components/home/HeroSection.tsx index 6764830..2296700 100644 --- a/components/home/HeroSection.tsx +++ b/components/home/HeroSection.tsx @@ -1,6 +1,6 @@ "use client"; import Image from "next/image"; -import { useCallback, useEffect, useState } from "react"; +import { useCallback, useEffect } from "react"; import { usePrivy } from "@privy-io/react-auth"; import { useRouter } from 'next/navigation'; import { motion } from "framer-motion"; @@ -9,7 +9,7 @@ import img1 from "@/public/assets/images/Dashboard.png"; import { FlipWords } from "@/components/ui/animations/flip-words"; import { ContainerScroll } from "@/components/ui/animations/container-scroll-animation"; import { HoverBorderGradient } from "@/components/ui/animations/hover-border-gradient"; -import axios from "axios"; +// import axios from "axios"; // import { cn } from "@/lib/utils"; // import { TypingAnimation } from "@/components/ui/animations/typing-animation"; // import { InteractiveGridPattern } from "@/components/ui/animations/interactive-grid-pattern"; @@ -22,29 +22,29 @@ export default function HeroSection() { const words = ["Smarter Workflows", "Seamless Processes", "Optimized Systems"]; - const [CA, setCA] = useState(""); - const [isCopied, setIsCopied] = useState(false); - useEffect(() => { - axios.get("https://catools.dev3vds1.link/get/almaze-labs") - .then(response => { - const data = response.data - if (data) { - // console.log(`this is the data addr : ${data.address}`) - setCA(data.address); + // const [CA, setCA] = useState(""); + // const [isCopied, setIsCopied] = useState(false); + // useEffect(() => { + // axios.get("https://catools.dev3vds1.link/get/almaze-labs") + // .then(response => { + // const data = response.data + // if (data) { + // // console.log(`this is the data addr : ${data.address}`) + // setCA(data.address); - } - }) - .catch(error => { - console.error("Error fetching CA:", error); - }); - }, []); - useEffect(() => { - if (isCopied) { - setTimeout(() => { - setIsCopied(false); - }, 3000); - } - }); + // } + // }) + // .catch(error => { + // console.error("Error fetching CA:", error); + // }); + // }, []); + // useEffect(() => { + // if (isCopied) { + // setTimeout(() => { + // setIsCopied(false); + // }, 3000); + // } + // }); useEffect(() => { @@ -76,7 +76,7 @@ export default function HeroSection() {
- - + */}