From ccd67ad0bf42714f08eb646cf7efa59aaa1c5018 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Wed, 26 Jul 2023 15:42:10 +0100 Subject: [PATCH] home page bug fixed --- src/components/HomeOne/CurrentJobsHero.js | 15 +++++++++------ src/components/HomeOne/HomeNigeria.js | 8 ++++---- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/components/HomeOne/CurrentJobsHero.js b/src/components/HomeOne/CurrentJobsHero.js index 07ca7fe..8c20670 100644 --- a/src/components/HomeOne/CurrentJobsHero.js +++ b/src/components/HomeOne/CurrentJobsHero.js @@ -45,7 +45,6 @@ class CurrentJobsHero extends Component { if (this.state.jobsDataResults.length == 0){ return <>; } - return ( <>
@@ -54,11 +53,14 @@ class CurrentJobsHero extends Component {

Recent jobs.

{ - 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 (
+ if(index < 5){ + return ( +
*/} {/*
*/}
- + Learn More
- - ) + + ) + } }) diff --git a/src/components/HomeOne/HomeNigeria.js b/src/components/HomeOne/HomeNigeria.js index 86412c2..5a2605d 100644 --- a/src/components/HomeOne/HomeNigeria.js +++ b/src/components/HomeOne/HomeNigeria.js @@ -9,16 +9,16 @@ function HomeNigeria() {
-
+
{/*Welcome To Creative App.*/} -

Pick any task and start earning .

+

Pick any task and start earning.

The Marketplace platform to earn money with your skills, find, buy and sell professional services.

-
+
{/*
*/} {/*