-
-
Save covelitein/2ec985aff09f1b14f9d3e49237fed973 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 { FaEthereum } from 'react-icons/fa' | |
import { Link } from 'react-router-dom' | |
const JobBid = ({ jobListing }) => { | |
return ( | |
<div className="border-t border-b border-l border-r border-gray-300 py-6 px-5"> | |
<h4>{jobListing.jobTitle}</h4> | |
<div className="flex mt-2 items-center"> | |
<FaEthereum className="text-md cursor-pointer" /> | |
<span className="text-md">{jobListing.prize}</span> | |
</div> | |
<div className="flex items-center mt-3 text-sm flex-wrap gap-3"> | |
{jobListing.tags.length > 0 | |
? jobListing.tags.map((tag, i) => ( | |
<button key={i} className="px-4 py-1 bg-gray-200 rounded-lg mr-2"> | |
{tag} | |
</button> | |
)) | |
: null} | |
</div> | |
<p className="pr-7 mt-5 text-sm">{jobListing.description}</p> | |
<div className='flex mt-5'> | |
<Link | |
to={`/chats/${jobListing.owner}`} | |
className="flex items-center px-3 py-1 border-[1px] border-green-500 text-green-500 space-x-2 rounded-md" | |
> | |
<span className="text-sm">Chat with owner</span> | |
</Link> | |
</div> | |
</div> | |
) | |
} | |
export default JobBid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment