Advertisement
dfghgfhplkjbv

src/components/SingleJob/SingleJob.js

Feb 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. import React, { Component } from 'react'
  2. import PropTypes from 'prop-types'
  3. import Ad from '../Ad'
  4. import styles from './SingleJob.module.scss'
  5. import Description from './Description'
  6. import Location from './Location'
  7. import VacancyGallery from './VacancyGallery'
  8.  
  9.  
  10.  
  11. const description = {
  12. title: 'nfisn',
  13. company: 'TESLA',
  14. location: 'MINSK, BELARUS',
  15. content: `lsirn`,
  16. }
  17.  
  18. const locationData = {
  19. title: 'Location',
  20. content: `Zipari is located in the historic Dumbo neighborhood. Outlined by the beautiful Brooklyn Bridge Park enjoy
  21. lunch outside or under the Brooklyn bridge.`,
  22. coordinates: {
  23. longitude: '27.567444',
  24. latitude: '53.893009',
  25. },
  26. }
  27.  
  28. // const photos = [
  29. // { url: 'https://happypetstories.com/cache/com_zoo/images/pembrokewelshcorgi_3aff402ddf0864e094e2f1f71bbb8b97.jpg' },
  30. // {
  31. // url: 'https://www.pets4homes.co.uk/images/breeds/50/d248d59954bb644e4437cce1758a9ce2.jpg',
  32. // },
  33. // {
  34. // url:
  35. // 'https://images.mentalfloss.com/sites/default/files/styles/width-constrained-728/public/istock_000016651146_small.jpg',
  36. // },
  37. // { url: 'https://www.pets4homes.co.uk/images/breeds/50/fdaffb675fe084458758d97f7bac468f.jpg' },
  38. // ]
  39.  
  40. class SingleJob extends Component {
  41.  
  42. render() {
  43. const {job:{title, companyName, description, geolocation, photo }} = this.props
  44. return (
  45. <div className={styles.root}>
  46. <div className={styles.inner}>
  47. <div className={styles.content}>
  48. <Description {...description} title ={title} company ={companyName} content={description}/>
  49. <Location {...locationData} title={title} content={description} geolocation={geolocation}/>
  50. <VacancyGallery photos={photo} />
  51. </div>
  52. <div className={styles.ad}>
  53. <Ad />
  54. </div>
  55. </div>
  56. </div>
  57. )
  58. }
  59. }
  60.  
  61. SingleJob.propTypes = {
  62. title: PropTypes.string,
  63. url: PropTypes.string,
  64. html: PropTypes.string,
  65. locale: PropTypes.string,
  66. }
  67.  
  68. export default SingleJob
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement