Commit 592c42a8ccb9dda839228ff66caebdb865130214
1 parent
f58a0394
Exists in
master
V.0.9.2 - Alterado para PUG e alterados logs do sistema
Showing
3 changed files
with
4 additions
and
3 deletions
Show diff stats
client/src/components/Dashboard.js
@@ -2,7 +2,7 @@ import React from 'react' | @@ -2,7 +2,7 @@ import React from 'react' | ||
2 | import FindConsumer from './findConsumer' | 2 | import FindConsumer from './findConsumer' |
3 | import Map from './map' | 3 | import Map from './map' |
4 | 4 | ||
5 | -const MapStart = () => { | 5 | +const DashBoard = () => { |
6 | return ( | 6 | return ( |
7 | <div className='App'> | 7 | <div className='App'> |
8 | <div> | 8 | <div> |
@@ -15,4 +15,4 @@ const MapStart = () => { | @@ -15,4 +15,4 @@ const MapStart = () => { | ||
15 | ) | 15 | ) |
16 | } | 16 | } |
17 | 17 | ||
18 | -export default MapStart | 18 | +export default DashBoard |
client/src/components/findConsumer.js
@@ -43,7 +43,7 @@ export default class FindConsumer extends Component<*, State> { | @@ -43,7 +43,7 @@ export default class FindConsumer extends Component<*, State> { | ||
43 | } | 43 | } |
44 | 44 | ||
45 | handleChange = (selectedOption) => { | 45 | handleChange = (selectedOption) => { |
46 | - console.log(selectedOption); | 46 | + console.log(selectedOption.value); |
47 | this.setState({ selectedOption: selectedOption }); | 47 | this.setState({ selectedOption: selectedOption }); |
48 | }; | 48 | }; |
49 | } | 49 | } |
client/src/components/map.js
@@ -8,6 +8,7 @@ export default class Map extends Component { | @@ -8,6 +8,7 @@ export default class Map extends Component { | ||
8 | this.state = {} | 8 | this.state = {} |
9 | } | 9 | } |
10 | render () { | 10 | render () { |
11 | + console.log(this.props) | ||
11 | return ( | 12 | return ( |
12 | <div> | 13 | <div> |
13 | <Iframe url='/map/pedro' position='absolute' width='100%' height='95%' id='mapId' allowFullScreen /> | 14 | <Iframe url='/map/pedro' position='absolute' width='100%' height='95%' id='mapId' allowFullScreen /> |