fix linting issues
This commit is contained in:
@@ -128,7 +128,7 @@ function App() {
|
|||||||
} else {
|
} else {
|
||||||
setDisplayMessage(targetMessage);
|
setDisplayMessage(targetMessage);
|
||||||
}
|
}
|
||||||
}, [messageIndex, isScrambling]);
|
}, [messageIndex, isScrambling, characters, rotatingMessages]);
|
||||||
|
|
||||||
// Rotating message effect
|
// Rotating message effect
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -140,7 +140,7 @@ function App() {
|
|||||||
return () => {
|
return () => {
|
||||||
clearInterval(messageInterval);
|
clearInterval(messageInterval);
|
||||||
};
|
};
|
||||||
}, []);
|
}, [rotatingMessages.length]);
|
||||||
|
|
||||||
// Fetch data from API on mount
|
// Fetch data from API on mount
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { Link, useLocation } from "react-router-dom";
|
|||||||
|
|
||||||
export function Navbar() {
|
export function Navbar() {
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
|
const { track } = useUmami();
|
||||||
|
|
||||||
const navItems = [
|
const navItems = [
|
||||||
{ label: "Home", path: "/" },
|
{ label: "Home", path: "/" },
|
||||||
@@ -11,7 +12,7 @@ export function Navbar() {
|
|||||||
];
|
];
|
||||||
|
|
||||||
const handleSwitch = (path: string) => {
|
const handleSwitch = (path: string) => {
|
||||||
useUmami().track("nav_to_" + path.replaceAll("/", "_"));
|
track("nav_to_" + path.replaceAll("/", "_"));
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -3,9 +3,10 @@ import { Github, Mail, MessageSquare } from "lucide-react";
|
|||||||
|
|
||||||
export function Footer() {
|
export function Footer() {
|
||||||
const currentYear = new Date().getFullYear();
|
const currentYear = new Date().getFullYear();
|
||||||
|
const { track } = useUmami();
|
||||||
|
|
||||||
const handleLinkClick = (name: string, url: string) => {
|
const handleLinkClick = (name: string, url: string) => {
|
||||||
useUmami().track(`footer_click_${name.toLowerCase()}`, { url });
|
track(`footer_click_${name.toLowerCase()}`, { url });
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user