Nicer text input

This commit is contained in:
lukasmartinelli
2016-09-09 14:09:02 +02:00
parent 4ad0d09cee
commit ca04f60393
4 changed files with 79 additions and 14 deletions
+6 -3
View File
@@ -1,5 +1,6 @@
import React from 'react'
import ReactMapboxGl from "react-mapbox-gl"
import ReactMapboxGl, { ZoomControl } from "react-mapbox-gl"
import theme from './theme.js'
export class Map extends React.Component {
@@ -10,8 +11,10 @@ export class Map extends React.Component {
render() {
if (this.props.mapStyle) {
return <ReactMapboxGl
style={this.props.mapStyle}
accessToken="pk.eyJ1IjoibW9yZ2Vua2FmZmVlIiwiYSI6IjIzcmN0NlkifQ.0LRTNgCc-envt9d5MzR75w"/>
style={this.props.mapStyle}
accessToken="pk.eyJ1IjoibW9yZ2Vua2FmZmVlIiwiYSI6IjIzcmN0NlkifQ.0LRTNgCc-envt9d5MzR75w">
<ZoomControl/>
</ReactMapboxGl>
}
return <div style={{backgroundColor: theme.colors.black}}/>
}