From 7926740b9fa940148e76b9833e073939c6752021 Mon Sep 17 00:00:00 2001 From: Rachel Prather Date: Thu, 4 Jan 2024 15:39:18 -0800 Subject: [PATCH] Add function to go to top of new page when footer link is clicked --- src/components/Footer/Footer.js | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/src/components/Footer/Footer.js b/src/components/Footer/Footer.js index bed4531..6c74f12 100644 --- a/src/components/Footer/Footer.js +++ b/src/components/Footer/Footer.js @@ -15,10 +15,26 @@ const Footer = () => {
- Home - About - Portfolio - Contact + {window.scroll(0, 0)}} + >Home + {window.scroll(0, 0)}} + >About + {window.scroll(0, 0)}} + >Portfolio + {window.scroll(0, 0)}} + >Contact