import React, { Component, useEffect, useState } from 'react'; import blogOne from '../../assets/images/blog-1.jpg'; import blogTwo from '../../assets/images/blog-2.jpg'; import blogThree from '../../assets/images/blog-3.jpg'; // import JobsData from '../../Services/JobsData'; import getConfig from './../../Config/config' import CountDownTimer from '../Helper/CountDownTimer'; let RecentJobsOne = ({jobs}) => { var site = getConfig()[0]; var dashUrl = process.env.REACT_APP_DASH_URL; function titleLen(title){ let maxl = 45; title.replace('/', ' '); title.replace('www.', ''); title.replace('.com', ''); title.replace('http//', ''); return (title.length > maxl)? title.substring(0,maxl-2)+'...': title; } return ( <> {jobs.length < 1 ? null :

Current Projects

{ jobs.map((i, index) => { var options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }; var postDt = new Date(i.expire).toLocaleDateString("en-US", options); if(index < 24){ return (
) } }) }
} ); } export default RecentJobsOne;