Skip to content

Instantly share code, notes, and snippets.

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