Add related opportunities section to OpportunityDetail
cgen-4c2c0df5d2444dcf9a6350091f435d8f
This commit is contained in:
parent
01740f29ba
commit
6ea62e629d
1 changed files with 18 additions and 0 deletions
|
|
@ -257,6 +257,24 @@ export default function OpportunityDetail() {
|
|||
)}
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
{/* Related Opportunities */}
|
||||
{relatedOpportunities.length > 0 && (
|
||||
<div className="mt-12">
|
||||
<h2 className="text-2xl font-bold mb-6">
|
||||
Similar Opportunities in {opportunity.arm_affiliation}
|
||||
</h2>
|
||||
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
|
||||
{relatedOpportunities.map((opp) => (
|
||||
<OpportunityCard
|
||||
key={opp.id}
|
||||
opportunity={opp}
|
||||
onClick={() => navigate(`/opportunities/${opp.id}`)}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue