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

Add in a link to the group page from a group ladder #1746

Merged
merged 3 commits into from Mar 18, 2022

Conversation

shinuito
Copy link
Contributor

@shinuito shinuito commented Mar 18, 2022

Fixes #518

Proposed Changes

  • Adds in a link to the group page from a ladder which is part of a group.
  • Reuses the button from the group chat channels for familiarity, and code from ChatDetails.tsx, specifically copying the goToGroup function from there.
  • Doesn't show for site ladders that aren't associated with a group.

The main use case I think will be if you are playing a game in group ladder, and click the tournament icon from the sidebar/dock and then would like to go to the group from that ladder page. If you navigate to the ladder from the group page itself, there's always the back button.

image

image

Add in button to go to group page from the ladder.
Conditionally render the group button, so it doesn't show up on site ladders.
Take out console.log and run prettier
@anoek
Copy link
Member

anoek commented Mar 18, 2022

Good improvement, thanks!

@anoek anoek merged commit af28386 into online-go:devel Mar 18, 2022
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.

No link to the group from a ladder page
2 participants