-
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,75 @@ | ||
import React from 'react'; | ||
import { Header, List } from 'semantic-ui-react'; | ||
import { allDelegatePageUrl, countryBandsUrl } from '../../../../lib/requests/routes.js.erb'; | ||
|
||
const IMPORTANT_LINKS = [ | ||
{ | ||
title: 'Guidelines for Disciplinary Incidents', | ||
link: 'https://documents.worldcubeassociation.org/edudoc/guidelines-for-disciplinary-incidents/guidelines-for-disciplinary-incidents.pdf', | ||
section: 'Guides', | ||
links: [ | ||
{ | ||
title: 'Delegate Handbook', | ||
link: 'https://documents.worldcubeassociation.org/edudoc/delegate-handbook/delegate-handbook.pdf', | ||
}, | ||
{ | ||
title: 'Guidelines for Disciplinary Incidents', | ||
link: 'https://documents.worldcubeassociation.org/edudoc/guidelines-for-disciplinary-incidents/guidelines-for-disciplinary-incidents.pdf', | ||
}, | ||
{ | ||
title: 'Visual Guide for Regulation 3j', | ||
link: 'https://drive.google.com/file/d/1m6THsA8fXRN7QFM4ApJbm6eVODKGbMLx/view', | ||
}, | ||
{ | ||
title: 'Visual Guide for Regulation 5b5f', | ||
link: 'https://drive.google.com/file/d/15XszaCGNvy3Dk6X6qERzZWZaDH1RH04z/view', | ||
}, | ||
], | ||
}, | ||
{ | ||
title: 'All Delegates', | ||
link: allDelegatePageUrl, | ||
}, | ||
{ | ||
title: 'WR Submission Form', | ||
link: 'https://docs.google.com/forms/d/e/1FAIpQLSeLrkLhFnIy1QNGoWoZT4jsOIibNJ_xc9qTd_YKBpcuMIq-LA/viewform', | ||
}, | ||
{ | ||
title: 'Gear Order Form', | ||
link: 'https://forms.gle/owX3ppZahYkoq9s48', | ||
}, | ||
{ | ||
title: 'Travel Reimbursement Form', | ||
link: 'https://docs.google.com/forms/d/12tz2I_EeBORm14kQO6ZB5TOp321YbXkIXvrxUNIHxN0/viewform', | ||
}, | ||
{ | ||
title: 'Equipment Funding Form', | ||
link: 'https://docs.google.com/forms/d/e/1FAIpQLSebkWMyG2kRzR3cDm3jXFVMFCwd5u4XI6Yt35givu0SOidpHg/viewform', | ||
}, | ||
{ | ||
title: 'Bands for WCA Dues', | ||
link: countryBandsUrl, | ||
}, | ||
{ | ||
title: 'Visual Guide for Regulation 3j', | ||
link: 'https://drive.google.com/file/d/1m6THsA8fXRN7QFM4ApJbm6eVODKGbMLx/view', | ||
}, | ||
{ | ||
title: 'Visual Guide for Regulation 5b5f', | ||
link: 'https://drive.google.com/file/d/15XszaCGNvy3Dk6X6qERzZWZaDH1RH04z/view', | ||
section: 'Forms', | ||
links: [ | ||
{ | ||
title: 'Gear Order Form', | ||
link: 'https://forms.gle/owX3ppZahYkoq9s48', | ||
}, | ||
{ | ||
title: 'Equipment Funding Form', | ||
link: 'https://docs.google.com/forms/d/e/1FAIpQLSebkWMyG2kRzR3cDm3jXFVMFCwd5u4XI6Yt35givu0SOidpHg/viewform', | ||
}, | ||
{ | ||
title: 'Travel Reimbursement Form', | ||
link: 'https://docs.google.com/forms/d/12tz2I_EeBORm14kQO6ZB5TOp321YbXkIXvrxUNIHxN0/viewform', | ||
}, | ||
{ | ||
title: 'WR Submission Form', | ||
link: 'https://docs.google.com/forms/d/e/1FAIpQLSeLrkLhFnIy1QNGoWoZT4jsOIibNJ_xc9qTd_YKBpcuMIq-LA/viewform', | ||
}, | ||
], | ||
}, | ||
]; | ||
|
||
function ListItemLink({ title, link }) { | ||
return ( | ||
<List.Item> | ||
<a href={link} target="_blank" rel="noreferrer">{title}</a> | ||
<a href={link} target='_blank' rel='noreferrer'> | ||
{title} | ||
</a> | ||
</List.Item> | ||
); | ||
} | ||
|
||
export default function ImportantLinks() { | ||
return ( | ||
<> | ||
<Header as="h2">Important Links</Header> | ||
<List> | ||
{IMPORTANT_LINKS.map(({ title, link }) => ( | ||
<ListItemLink key={link} title={title} link={link} /> | ||
))} | ||
</List> | ||
<Header as='h2'>Important Links</Header> | ||
{IMPORTANT_LINKS.map(({ section, links }) => ( | ||
<div key={section}> | ||
<Header as='h3'>{section}</Header> | ||
<List> | ||
{links.map(({ title, link }) => ( | ||
<ListItemLink key={link} title={title} link={link} /> | ||
))} | ||
</List> | ||
</div> | ||
Comment on lines
+64
to
+71
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not too fond of "wild" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Otherwise, |
||
))} | ||
</> | ||
); | ||
} |
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)