Skip to content

Game page#5

Open
Martin4TheWin wants to merge 2 commits into
mainfrom
GamePage
Open

Game page#5
Martin4TheWin wants to merge 2 commits into
mainfrom
GamePage

Conversation

@Martin4TheWin
Copy link
Copy Markdown

Some changes to the Gamepage

Copy link
Copy Markdown
Member

@dusan-turajlic dusan-turajlic left a 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

Comment thread src/components/SeriesContainer.jsx
Comment thread src/pages/GamePage.js
const params = useParams();
const [gameName, setGameName] = useState(params.gameName);
const [leagues, setLeagues] = useState([]);
const [resize, setResize] = useState(window.innerWidth);
Copy link
Copy Markdown
Member

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

Comment thread src/pages/GamePage.js
Comment thread src/style.css
Comment thread src/pages/GamePage.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants