home page bug fixed
This commit is contained in:
@@ -45,7 +45,6 @@ class CurrentJobsHero extends Component {
|
||||
if (this.state.jobsDataResults.length == 0){
|
||||
return <></>;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<section className="appie-blog-area">
|
||||
@@ -54,11 +53,14 @@ class CurrentJobsHero extends Component {
|
||||
<p className='pl-15'>Recent jobs.</p>
|
||||
|
||||
{
|
||||
this.state.jobsDataResults.map(i => {
|
||||
this.state.jobsDataResults.map((i, index) => {
|
||||
var options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
|
||||
var postDt = new Date(i.expire).toLocaleDateString("en-US", options);
|
||||
let hourRemaining = Math.floor(Math.abs(new Date() - new Date(i.expire)) / (1000*60*60))
|
||||
|
||||
return (<div className="col-md-6 col-xl-12">
|
||||
if(index < 5){
|
||||
return (
|
||||
<div className="col-12">
|
||||
<div
|
||||
className="container-fluid mb-10 wow animated fadeInUp boxBorder d-flex align-items-center rounded"
|
||||
data-wow-duration="3000ms"
|
||||
@@ -87,15 +89,16 @@ class CurrentJobsHero extends Component {
|
||||
{/* </ul>*/}
|
||||
{/*</div>*/}
|
||||
<div className='lmoreTxt d-flex justify-content-end align-items-center'>
|
||||
<a href={dashUrl}>
|
||||
<a href={dashUrl} className=''>
|
||||
Learn More <i className="fal fa-arrow-right" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>)
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user