-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Port map to React #62
Conversation
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.
This is so exciting!!
@@ -21,9 +21,14 @@ | |||
"react" | |||
], | |||
"rules": { | |||
"template-curly-spacing": "off", |
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.
This is to fix an error TypeError: Cannot read property 'range' of null
Occurred while linting /Users/snyderc/Documents/vaccinatema/components/utilities/parseBookAppointmentString.js:1
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.
Thanks for tackling this!
Use React to render the map. Use CSS shapes instead of images for the stars and circles. Added URL parsing of the "booking" field on both the map and search. Took the elements from the current homepage so that we can render the current site homepage in React.
I kept the map and its subcomponents (marker, popup) in one file, because I think there will be changes to the organizational structure when we integrate the map into the search results page, which is the next step after publishing a Reactified version of the site.
Documentation for google-map-react:
https://github.com/google-map-react/google-map-react
https://github.com/google-map-react/google-map-react/blob/master/API.md