-
Notifications
You must be signed in to change notification settings - Fork 186
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
Reorganize Delegate panel links #10651
base: main
Are you sure you want to change the base?
Conversation
1. Moves the Delegate Handbook link to the Important Links section 2. Removes the "All Delegates" link from the Delegate panel, because it is not necessary or useful here 3. Adds sections to the Important Links so that they are better organized
830a61b
to
15e2dfb
Compare
const DELEGATE_HANDBOOK_LINK = | ||
'https://documents.worldcubeassociation.org/edudoc/delegate-handbook/delegate-handbook.pdf'; |
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.
Where is this constant being used. if you're deleting the delegateHandbook
panel page further down?
(Sorry if this question is obvious, I just can't see it from the way GitHub renders the diff of this particular PR)
<div key={section}> | ||
<Header as='h3'>{section}</Header> | ||
<List> | ||
{links.map(({ title, link }) => ( | ||
<ListItemLink key={link} title={title} link={link} /> | ||
))} | ||
</List> | ||
</div> |
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.
Not too fond of "wild" div
s appearing in our codebase. Lists in Semantic UI can do sub-lists, have you considered that?
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.
Otherwise, React.Fragment
should do as a last resort.
This commit:
There's still some jank with the CSS but this page wasn't pretty anyway and I don't want to mess with the styling rn
Desktop View:
Mobile View: