Ilnicki010 / support-local-businesses-app

COVID19 Global Hackathon /// To support local businesses, we’re creating a map layer for crowdfunding campaigns so ppl can see the businesses near them raising survival money online -- giving businesses access to and helping them maintain a loyal consumer base.
https://savesmall.org
1 stars 1 forks source link

Claiming acts like it's a page #12

Closed dwertheimer closed 4 years ago

dwertheimer commented 4 years ago

When I click "claim" it sends me to what looks like a page "http://localhost:3000/claim-business" but that URL doesn't actually work, and if I try to send that to someone, like the owner of the restaurant and they go there, it actually crashes the app. I would suggest we put the business ID behind it: http://localhost:3000/claim-business/12321414 and then have it actually work in the router so that someone could come directly to that link to register.

dwertheimer commented 4 years ago

Maybe leave the results in Context

Ilnicki010 commented 4 years ago

Check out PR, I used route params to pass place_id then needed data (phone number, place name) is fetched from G places using provided id. I think this solves that problem