Advertisement
dfghgfhplkjbv

src/templates/Jobs.js

Feb 21st, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. import React, { Component } from 'react'
  2. import { graphql } from 'gatsby'
  3. import Header from 'src/components/Header'
  4. import PageHelmet from 'src/components/PageHelmet'
  5. import AllJobs from 'src/components/AllJobs'
  6. import Footer from 'src/components/Footer'
  7. import Subscribe from 'src/components/Subscribe'
  8.  
  9. class JobsPage extends Component {
  10. render() {
  11. const {
  12. data: { jobs },
  13. } = this.props
  14. return (
  15. <>
  16. <PageHelmet />
  17. <Header full={true} />
  18. <AllJobs jobs={jobs} />
  19. <Subscribe />
  20. <Footer />
  21. </>
  22. )
  23. }
  24. }
  25.  
  26. export const query = graphql`
  27. query Jobs($locale: String!) {
  28. jobs: allDatoCmsJob(filter: { locale: { eq: $locale } }) {
  29. edges {
  30. node {
  31. title
  32. description
  33. geolocation {
  34. latitude
  35. longitude
  36. }
  37. locationDescription
  38. companyName
  39. photo {
  40. id
  41. }
  42. companyLogo {
  43. id
  44. }
  45. }
  46. }
  47. }
  48. }
  49. `
  50.  
  51. export default JobsPage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement