Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { Component } from 'react'
- import PropTypes from 'prop-types'
- import styles from './Location.module.scss'
- import MyMap from './Map'
- class Location extends Component {
- render() {
- const { title, content, coordinates, geolocation } = this.props
- console.log(geolocation)
- return (
- <div className={styles.root}>
- <div className={styles.description}>
- <h1 className={styles.title}>{title}</h1>
- <div className={styles.content}>{content}</div>
- </div>
- <MyMap {...coordinates} geolocation={geolocation}/>
- </div>
- )
- }
- }
- Location.propTypes = {
- title: PropTypes.string,
- url: PropTypes.string,
- }
- export default Location
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement