Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Game page #5

wants to merge 2 commits into from

Conversation

Martin4TheWin
Copy link

Some changes to the Gamepage

Copy link
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

src/components/SeriesContainer.jsx Show resolved Hide resolved

const GamePage = () => {
const params = useParams();
const [gameName, setGameName] = useState(params.gameName);
const [leagues, setLeagues] = useState([]);
const [resize, setResize] = useState(window.innerWidth);
Copy link
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

src/pages/GamePage.js Outdated Show resolved Hide resolved
src/style.css Outdated Show resolved Hide resolved
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