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

GamePage: Added the Game properties button and leave game button in modal #164

Merged
merged 2 commits into from
Jun 26, 2024

Conversation

sksmagr23
Copy link
Contributor

Description

The game properties button is added at bottom left of the gamepage, on clicking. we can anytime open and display the GamePropertiesModal within the game.
Also added a Leave game button in GamePropertiesModal which triggers the LEAVE_GAME event using channel.triggerEvent and navigates to homepage.
Both changes done in seperate commits.

fixes #161

How to Test

  • Navigate to gamePage

Related Issues

Checklist

  • I have tested these changes locally.
  • I have reviewed the code and ensured it follows the project's coding guidelines.
  • I have updated the documentation, if necessary.
  • I have assigned reviewers to this pull request.

Screenshots

Screencast.from.2024-06-25.16-48-38.webm

Copy link

vercel bot commented Jun 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
multiplayer-uno ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 3:35am

Copy link
Collaborator

@kuv2707 kuv2707 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!
Please implement the change suggested, and it would be good to merge

@sksmagr23
Copy link
Contributor Author

@kuv2707 implemented the reviewed change

@sksmagr23
Copy link
Contributor Author

Done the change , you can review it

Copy link
Collaborator

@kuv2707 kuv2707 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 to me!

frontend/src/pages/Game.tsx Outdated Show resolved Hide resolved
@kuv2707
Copy link
Collaborator

kuv2707 commented Jun 25, 2024

Once you resolve the minor merge conflict, it can be merged

The game properties button is added at bottom left
of the gamepage, on clicking. we can anytime
open and display the GamePropertiesModal.

fixes shivansh-bhatnagar18#161
Added a Leave game button in GamePropertiesModal
which triggers the LEAVE_GAME event and navigates
to homepage.

fixes shivansh-bhatnagar18#161
@sksmagr23
Copy link
Contributor Author

Resolved the merge conflict, can be merged now

@kuv2707 kuv2707 merged commit 30aff34 into shivansh-bhatnagar18:master Jun 26, 2024
8 checks passed
@kuv2707
Copy link
Collaborator

kuv2707 commented Jun 26, 2024

Merged, thanks @sksmagr23

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.

Add a button to display game properties
2 participants