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

2 court info #17

Merged
merged 3 commits into from
Sep 23, 2019
Merged

2 court info #17

merged 3 commits into from
Sep 23, 2019

Conversation

davclark
Copy link
Member

Implements a simple widget to display the selected court info (court name passed in via props). Data is currently defined as a variable inside the component.

@davclark davclark requested a review from kg6zvp September 22, 2019 21:05
@davclark
Copy link
Member Author

@kg6zvp did you want to review this properly? It's not complex - so I can also just merge without review.

const selected_court = court_info[props.court]
return (
<div className="Court">
<p><a href={selected_court.url}>{selected_court.fullname}</a> – {selected_court.phone_info}</p>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you make the phone number a tel: link? Otherwise, looks good to me. Merge whenever. 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

That's not completely trivial given React's escaping rules and the frequent presence of more than 1 phone number. I'll merge for now and add an issue.

@davclark
Copy link
Member Author

Opened an issue about tel: links in #23

@davclark davclark merged commit 1d8206a into master Sep 23, 2019
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