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 an option to change the current address #7

Closed
guytepper opened this issue Oct 2, 2020 · 0 comments · Fixed by #20
Closed

Add an option to change the current address #7

guytepper opened this issue Oct 2, 2020 · 0 comments · Fixed by #20

Comments

@guytepper
Copy link
Owner

Give the user an option to change their current address after they gave their initial coordinates in the intro modal.
Lots of users requested this feature to see protests in other location, and it also provides a solution to #5.

Ideally this should be a search box just above the ProtestList:
Screen Shot 2020-10-02 at 17 39 54

Most of the work will probably done inside App.js:

  • The protests displayed on the ProtestList are stored inside the protests state property. Note that they are loaded only initially, so it will need to be changed.
  • userCoordinates state property (which resembles the initial user coordinates, and stay the same even as they move the map) should be updated with the new coordinates.
  • PlacesAutocomplete can be used to provide suggestions & geocode values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant