dfghgfhplkjbv

src/components/SingleJob/SingleJob.js

Feb 27th, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 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. import { Link } from 'gatsby'
  9. import About from './About'
  10.  
  11. class SingleJob extends Component {
  12. render() {
  13. const {
  14. job,
  15. job: { aboutCompany },
  16. locale,
  17. } = this.props
  18.  
  19. return (
  20. <div className={styles.root}>
  21. <div className={styles.inner}>
  22. <div className={styles.content}>
  23. <Description {...job} locale={locale} />
  24. <Location {...job} locale={locale} />
  25. <VacancyGallery {...job} />
  26. <About {...{ aboutCompany, locale }} />
  27. </div>
  28. <div className={styles.ad}>
  29. <Link>
  30. <button className={styles.respond}>Respond</button>
  31. </Link>
  32. <Ad locale={locale} />
  33. </div>
  34. </div>
  35. </div>
  36. )
  37. }
  38. }
  39.  
  40. SingleJob.propTypes = {
  41. title: PropTypes.string,
  42. url: PropTypes.string,
  43. html: PropTypes.string,
  44. locale: PropTypes.string,
  45. }
  46.  
  47. export default SingleJob
Add Comment
Please, Sign In to add comment