Advertisement
dfghgfhplkjbv

src/components/SingleJob/Location.js

Feb 20th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. import React, { Component } from 'react'
  2. import PropTypes from 'prop-types'
  3. import styles from './Location.module.scss'
  4. import MyMap from './Map'
  5.  
  6. class Location extends Component {
  7. render() {
  8. const { title, content, coordinates, geolocation } = this.props
  9. console.log(geolocation)
  10. return (
  11. <div className={styles.root}>
  12. <div className={styles.description}>
  13. <h1 className={styles.title}>{title}</h1>
  14. <div className={styles.content}>{content}</div>
  15. </div>
  16. <MyMap {...coordinates} geolocation={geolocation}/>
  17. </div>
  18. )
  19. }
  20. }
  21.  
  22. Location.propTypes = {
  23. title: PropTypes.string,
  24. url: PropTypes.string,
  25. }
  26.  
  27. export default Location
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement