diff --git a/package.json b/package.json
index 2801be1..98db79e 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,7 @@
"dependencies": {
"ajv": "^6.5.1",
"axios": "^0.18.0",
- "leaflet": "^1.3.1",
+ "leaflet": "^1.3.2",
"leaflet-draw": "^1.0.2",
"lodash": "^4.17.10",
"moment": "^2.22.2",
@@ -17,7 +17,7 @@
"react-redux": "^5.0.7",
"react-router-dom": "^4.3.1",
"react-scripts": "1.1.4",
- "react-select": "^1.2.1",
+ "react-select": "^2.0.0-beta.7",
"redux": "^4.0.0",
"redux-api-middleware": "^2.3.0",
"redux-logger": "^3.0.6",
diff --git a/src/components/First.js b/src/components/First.js
new file mode 100644
index 0000000..ab270ee
--- /dev/null
+++ b/src/components/First.js
@@ -0,0 +1,65 @@
+import React, { Component } from 'react'
+import { components } from 'react-select'
+import AsyncSelect from 'react-select/lib/Async'
+
+
+const cbStopOptions = (inputValue, callback) => {
+ fetch(`https://api.goth.app/v1/stop/?search=${inputValue}`)
+ .then((response) => response.json())
+ .then((json) => {
+ callback(json.results.map(ele => Object.assign(ele, {
+ value: ele.id, label: ele.name
+ })))
+ })
+}
+
+const Option = (props) => {
+ const { stop_id, name, stop_desc } = props.data
+ return (
+ {stop_id}
{name}
+ {stop_desc.length > 0 &&
{stop_desc}}
+
{stop_id}
{name}
+ {stop_desc.length > 0 &&