SHARE
TWEET

src/templates/Job.js

dfghgfhplkjbv Feb 20th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 Subscribe from 'src/components/Subscribe'
  6. import SingleJob from 'src/components/SingleJob'
  7.  
  8. class SingleJobPage extends Component {
  9.   render() {
  10.     const {
  11.       data: { job },
  12.     } = this.props
  13.     return (
  14.       <>
  15.         <PageHelmet title="Job" />
  16.         <Header full={true} />
  17.         <SingleJob job={job} />
  18.         <Subscribe />
  19.       </>
  20.     )
  21.   }
  22. }
  23.  
  24. export const query = graphql`
  25.   query SingleJob($id: String!, $locale: String!) {
  26.     job: datoCmsJob(locale: { eq: $locale }, id: { eq: $id }) {        
  27.     title
  28.     description
  29.     geolocation{
  30.       latitude
  31.       longitude
  32.     }
  33.     locationDescription
  34.     photo{
  35.       url
  36.     }
  37.     companyName
  38.    
  39.     }
  40.   }
  41. `
  42.  
  43. export default SingleJobPage
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top