ecatch-kyst / web

IT Bachelor project @ NTNU ⚡🎣
https://ecatch-kyst-beta.firebaseapp.com
GNU General Public License v3.0
5 stars 0 forks source link

✨ Add personal fishing sites #46

Closed Mortefal closed 5 years ago

Mortefal commented 5 years ago

Expected Behavior

A user should be able to create and store his own fishing spots with name and gps coordinates.

Priority

Would be nice to do this sprint.

Size

1-2

balazsorban44 commented 5 years ago

@Mortefal Perfect place to open the dialog from:

https://github.com/ecatch-kyst/web/blob/df16551905b99e171d5360a5189abeba64bc7a06/src/components/Forms/components/Dropdown.jsx#L65-L75

This component is rendered in the Dropdown component, if no result was found. You can define an onClick method on this, that sends the user to a desired dialog.

Example:

image

So instead of saying "No option", you could say, "Add your own location", and use the onClick prop to render a dialog with some input fields

Mortefal commented 5 years ago

Goes into issue #52 , however the issue is almost ready, so remains open