cleanup some state and functions

This commit is contained in:
Tom Heaton
2024-06-21 10:21:11 +01:00
parent 43b8fa3685
commit d1df6426b2
3 changed files with 6 additions and 10 deletions

View File

@@ -33,7 +33,7 @@ const socials = [
];
export default function Footer() {
const toggleHome = () => {
const scrollToHome = () => {
scroll.scrollToTop();
};
@@ -43,7 +43,7 @@ export default function Footer() {
<FooterWrap>
<SocialMedia>
<SocialMediaWrap>
<SocialLogo to="/udlbook" onClick={toggleHome}>
<SocialLogo to="/udlbook" onClick={scrollToHome}>
Understanding Deep Learning
</SocialLogo>
<WebsiteRights>