[offers][feat] show location in offers table

ailing/undo-fix
Yangshun Tay 2 years ago
parent cc22f23d97
commit 3d09cf4e12

@ -23,6 +23,7 @@ export default function OfferTableRow({
company,
id,
income,
location,
monthYearReceived,
profileId,
stocks,
@ -32,9 +33,12 @@ export default function OfferTableRow({
}: OfferTableRowProps) {
return (
<tr key={id} className="divide-x divide-slate-200 border-b bg-white">
<th className="whitespace-nowrap py-4 px-4 font-medium" scope="row">
{company.name}
</th>
<td className="space-y-0.5 py-4 px-4" scope="row">
<div className="font-medium">{company.name}</div>
<div className="text-xs text-slate-400">
{location.cityName} ({location.countryCode})
</div>
</td>
<td className="py-4 px-4">
{getLabelForJobTitleType(title as JobTitleType)}
</td>

@ -235,7 +235,8 @@ export default function OffersTable({
<th
key={header}
className={clsx(
'whitespace-nowrap bg-slate-100 py-3 px-4',
'bg-slate-100 py-3 px-4',
header !== 'Company' && 'whitespace-nowrap',
// Make last column sticky.
index === columns.length - 1 &&
'sticky right-0 drop-shadow md:drop-shadow-none',

Loading…
Cancel
Save