open-tacos
open-tacos copied to clipboard
refactor: using alertdialog versus popup
name: Pull request about: Create a pull request title: '' labels: '' assignees: ''
What type of PR is this?(check all applicable)
- [ ] refactor
- [ ] feature
- [ ] bug fix
- [ ] documentation
- [ ] optimization
- [ ] other
Description
Related Issues
Issue #1145
What this PR achieves
Screenshots, recordings
Notes
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated (UTC) |
|---|---|---|---|
| open-tacos | ✅ Ready (Inspect) | Visit Preview | Oct 13, 2024 7:16pm |
@vnugent Looks like I might be getting the same errors as the last pr, preventing the preview from deploying. Not necessarily done with this pr or ready for review, but is there anything I can do to get the preview working?
@clintonlunn thanks for the fix. I did a quick test notice the picker doesn't set initial location based on the form state:
- From the area edit page, click on the coordinates
- Pick a different location. Click Confirm.
- Click on the coordinate again. Notice how the drop pin is set at the original location, not at what we set in step 2.
I think the fix may be having initializing the drop pin (in a useEffect() to the value in the form state
@clintonlunn thanks for the fix. I did a quick test notice the picker doesn't set initial location based on the form state:
- From the area edit page, click on the coordinates
- Pick a different location. Click Confirm.
- Click on the coordinate again. Notice how the drop pin is set at the original location, not at what we set in step 2.
I think the fix may be having initializing the drop pin (in a
useEffect()to the value in the form state
@vnugent
Thanks, that was it. Instead of passing an initialCenter prop to the coordinate map at all, we can just watch the form context for the latlngStr value and decide where to put the map pin.
@vnugent i refactored a bit to simplify this pr a lot. i believe all of the issues should be resolved now. please let me know if there is anything else you would like to see done