diff --git a/src/components/FancyCursor.tsx b/src/components/FancyCursor.tsx index 99149a4..7b95726 100644 --- a/src/components/FancyCursor.tsx +++ b/src/components/FancyCursor.tsx @@ -42,7 +42,7 @@ function FancyCursor() { return () => { window.removeEventListener("mousemove", moveCursor); }; - }, []); + }, [cursorControls, cursorX, cursorY, followerControls]); return ( <> diff --git a/src/components/FeaturedProject.tsx b/src/components/FeaturedProject.tsx index dff36b6..348cec1 100644 --- a/src/components/FeaturedProject.tsx +++ b/src/components/FeaturedProject.tsx @@ -618,57 +618,57 @@ const Icons = { ), }; -const FeaturedProjects = ({ projects }) => { - return ( -
- {projects.map((project, index) => ( - - - -

{project.name}

-

- {project.description} -

-
- {project.technologies.map((tech, i) => ( - - {tech} - - ))} -
- - View Project - -
-
-
- ))} -
- ); -}; +// const FeaturedProjects = ({ projects }) => { +// return ( +//
+// {projects.map((project, index) => ( +// +// +// +//

{project.name}

+//

+// {project.description} +//

+//
+// {project.technologies.map((tech, i) => ( +// +// {tech} +// +// ))} +//
+// +// View Project +// +//
+//
+//
+// ))} +//
+// ); +// }; const files = [ { diff --git a/src/components/Header.tsx b/src/components/Header.tsx index edd16ca..a086e85 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -9,7 +9,6 @@ import styles from "./Header.module.scss"; import { routes, display } from "../resources"; import { person, home, about, blog, work, gallery } from "../resources"; -import { motion } from "framer-motion"; import { ModeToggle } from "./mode-toggle"; import { Separator } from "./ui/separator"; diff --git a/src/components/InitTransition.jsx b/src/components/InitTransition.jsx index 7194ff7..692be65 100644 --- a/src/components/InitTransition.jsx +++ b/src/components/InitTransition.jsx @@ -2,7 +2,7 @@ import useWindowSize from "@/hooks/useWindowSize"; import { motion } from "framer-motion"; import { useState } from "react"; -import { useTranslation } from "react-i18next"; +// import { useTranslation } from "react-i18next"; const blackBox = { initial: { @@ -48,7 +48,7 @@ const text = { // const InitialTransition = ({ onComplete }) => { const InitialTransition = () => { - const { t } = useTranslation(); + // const { t } = useTranslation(); const { width, height } = useWindowSize(); // Scroll user to top to avoid showing the footer diff --git a/src/components/Mailchimp.tsx b/src/components/Mailchimp.tsx index 1c50c70..ee88f64 100644 --- a/src/components/Mailchimp.tsx +++ b/src/components/Mailchimp.tsx @@ -6,7 +6,7 @@ import { Button, Flex, Heading, Input, Text } from "./once-ui/components"; import { Background } from "./once-ui/components/Background"; import { useState } from "react"; -function debounce void>( +function debounce void>( func: T, delay: number ): T { @@ -20,7 +20,7 @@ function debounce void>( export const Mailchimp = () => { const [email, setEmail] = useState(""); const [error, setError] = useState(""); - const [touched, setTouched] = useState(false); + // const [touched, setTouched] = useState(false); // Removed unused state const validateEmail = (email: string): boolean => { if (email === "") { @@ -45,7 +45,7 @@ export const Mailchimp = () => { const debouncedHandleChange = debounce(handleChange, 2000); const handleBlur = () => { - setTouched(true); + // setTouched(true); // Removed unused state update if (!validateEmail(email)) { setError("Please enter a valid email address."); }