-
-
Save Daltonic/09a94830ea974a6649cb3602a9b22862 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 MyJobs = () => { | |
const [mygigs] = useGlobalState('mygigs') | |
return ( | |
<div className=""> | |
<Header /> | |
<div className="mt-11 px-4"> | |
<h3 className="text-xl px-4 my-4"> | |
{mygigs.length > 0 | |
? 'Assigned Tasks.' | |
: "You Don't Have Any Assigned task."} | |
</h3> | |
<div className="px-3"> | |
{mygigs.map((mygig, i) => ( | |
<JobBid key={i} jobListing={mygig} /> | |
))} | |
</div> | |
</div> | |
</div> | |
) | |
} | |
export default MyJobs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment