Skip to content

Commit

Permalink
Revert "🎨 (Footer.tsx): Add smooth scroll to top functionality when c…
Browse files Browse the repository at this point in the history
…licking on the logo in the footer"

This reverts commit c49a3a8.
  • Loading branch information
drumst0ck committed Aug 7, 2024
1 parent c49a3a8 commit c7ae8eb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions app/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ export const Footer = () => {
</a>
));

const handleScrollToTop = (e: React.MouseEvent<HTMLAnchorElement>) => {
e.preventDefault();
window.scrollTo({ top: 0, behavior: 'smooth' });
};

return (
<div className="w-full relative">
<div className="w-[200px] h-[200px] blur-[150px] bg-caBlurBoxes absolute z-10 -top-[50px] left-0 right-0 m-auto"></div>
Expand All @@ -75,7 +70,6 @@ export const Footer = () => {
href="#"
className="cursor-pointer hover:opacity-85"
aria-label="Volver al inicio"
onClick={handleScrollToTop}
>
<Image
src="/imgs/logo.png"
Expand Down Expand Up @@ -120,4 +114,4 @@ export const Footer = () => {
</footer>
</div>
);
};
};

0 comments on commit c7ae8eb

Please sign in to comment.