-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add #6 Add hall of fame #8
Add #6 Add hall of fame #8
Conversation
ThulinaWickramasinghe
commented
Aug 17, 2024
- Add routing for hall-of-fame
- WIP dynamic data fetching for hof
src/components/layout/header.jsx
Outdated
const { pathname } = useLocation(); | ||
|
||
useEffect(() => { | ||
setIsHallOfFame(pathname === hallOfFame); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need this extra state, this comparison can be moved directly to line 79
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is being used in 2 places. Will add to a variable and use it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done