-
-
Save Daltonic/cd5fd8d3600407e4af98b99d077e4cb8 to your computer and use it in GitHub Desktop.
DappWorks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { Header, JobBid } from '../components' | |
import { useGlobalState } from '../store' | |
const MyBids = () => { | |
const [mybidjobs] = useGlobalState('mybidjobs') | |
return ( | |
<div className=""> | |
<Header /> | |
<div className="mt-11 px-4"> | |
<h3 className="text-xl px-4 my-4"> | |
{mybidjobs.length > 0 | |
? 'Jobs You Applied For' | |
: "You Haven't Bid on Any Jobs Yet."} | |
</h3> | |
<div className="px-3"> | |
{mybidjobs.length > 0 | |
? mybidjobs.map((mybidjob, i) => ( | |
<JobBid key={i} jobListing={mybidjob} /> | |
)) | |
: null} | |
</div> | |
</div> | |
</div> | |
) | |
} | |
export default MyBids |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment