Skip to content

Commit

Permalink
Merge branch 'master' of github.com:haxaco/c4v-team1
Browse files Browse the repository at this point in the history
  • Loading branch information
Froilan Irizarry committed Apr 14, 2019
2 parents f4ed990 + d09260d commit d316cd6
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions client/src/components/Navigation/Navigation.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,36 @@
import React, {Component} from 'react'

import { GoogleComponent } from 'react-google-location'
const API_KEY = 'AIzaSyCvdgUHoWt0MgqmWmcw-IcMAXMvRLWxcpE'

class Navigation extends Component {
constructor(props) {
super(props)
this.state = {
place: null,
};
}
render() {
return (
<div className="navigation">
<div className="navigation__wrapper">
<div className="serchbar">
<form>
<input type="text" className="search-input" placeholder="Serch Address"/>
</form>
<GoogleComponent
apiKey={API_KEY}
language={'en'}
country={'country:in|country:us'}
coordinates={true}
locationBoxStyle={'custom-style'}
locationListStyle={'custom-style-list'}
onChange={(e) => { this.setState({ place: e }) }} />
</div>
</div>
</div>
)
}
}

export default Navigation;
export default Navigation;




0 comments on commit d316cd6

Please sign in to comment.