Skip to content

Commit 64b05b5

Browse files
committed
Update logo and code comments
1 parent 81116ca commit 64b05b5

File tree

4 files changed

+85
-4
lines changed

4 files changed

+85
-4
lines changed

src/components/ScrollToTop.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// NOTE: This scroll to top is the default react scroll to top behavior when visiting a new route.
2-
// For the scroll to top behavior on a click event I have create a custom hook with the name of useScrollToTop under the hooks folder.
2+
// For the scroll to top behavior on a click event I have created a custom hook with the name of useScrollToTop under the hooks folder that scrolls use to the top of the page when they scroll down on the page.
33

44
import { useEffect } from 'react';
55
import { useLocation } from 'react-router-dom';

src/hooks/useScrollToTop.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// NOTE: This scroll to top is the actual working scroll to to when user clicks
1+
// NOTE: This scroll to top is the actual working scroll to to when user clicks on the circle arrow that appears when use scrolls down.
2+
// The other `ScrollToTop` component in components folder is for the default react scroll to top behavior on route visit.
23

34
import { useState, useEffect } from 'react';
45
import { FiChevronUp } from 'react-icons/fi';

src/images/logo-dark.svg

+41-1
Loading

src/images/logo-light.svg

+41-1
Loading

0 commit comments

Comments
 (0)