Skip to content

Instantly share code, notes, and snippets.

@Daltonic
Created September 20, 2023 16:40
Show Gist options
  • Save Daltonic/09a94830ea974a6649cb3602a9b22862 to your computer and use it in GitHub Desktop.
Save Daltonic/09a94830ea974a6649cb3602a9b22862 to your computer and use it in GitHub Desktop.
DappWorks
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