-
Notifications
You must be signed in to change notification settings - Fork 0
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
Game page #5
base: main
Are you sure you want to change the base?
Game page #5
Conversation
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.
Looks good over all. Left some comments make sure to resolve them before merging
|
||
const GamePage = () => { | ||
const params = useParams(); | ||
const [gameName, setGameName] = useState(params.gameName); | ||
const [leagues, setLeagues] = useState([]); | ||
const [resize, setResize] = useState(window.innerWidth); |
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 could make a hook out of this. It's a bit hard to figure out why this is needed just from reading the code. So I think maybe moving it into a hook
would make it a bit easier to understand. Something like useWindowChange
f45a4cb
to
19dce3a
Compare
Some changes to the Gamepage