mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2026-04-06 20:38:24 +08:00
[offers][feat] add display of number of offers
This commit is contained in:
@@ -49,8 +49,8 @@ type ProfileBackgroundProps = Readonly<{
|
||||
function ProfileBackground({ background }: ProfileBackgroundProps) {
|
||||
if (!background?.experiences?.length && !background?.educations?.length) {
|
||||
return (
|
||||
<div className="p-4">
|
||||
<p>No background information available.</p>
|
||||
<div className="flex items-center justify-center p-8 text-slate-500">
|
||||
<p>Creator has not filled in background information.</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -120,7 +120,9 @@ function ProfileAnalysis({
|
||||
return (
|
||||
<div className="space-y-4 p-4">
|
||||
{!analysis ? (
|
||||
<p>No analysis available.</p>
|
||||
<div className="flex items-center justify-center p-4 text-slate-500">
|
||||
<p>This profile has no analysis yet.</p>
|
||||
</div>
|
||||
) : (
|
||||
<OfferAnalysis
|
||||
allAnalysis={analysis}
|
||||
|
||||
@@ -25,6 +25,7 @@ export default function OfferTableRow({
|
||||
income,
|
||||
location,
|
||||
monthYearReceived,
|
||||
numberOfOtherOffers,
|
||||
profileId,
|
||||
stocks,
|
||||
title,
|
||||
@@ -61,6 +62,9 @@ export default function OfferTableRow({
|
||||
href={`/offers/profile/${profileId}`}>
|
||||
View Profile
|
||||
</Link>
|
||||
<div className="text-xs text-slate-500">
|
||||
This person also received {numberOfOtherOffers} other offer(s).
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user