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

@ -235,7 +235,8 @@ export default function OffersTable({
<th <th
key={header} key={header}
className={clsx( 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. // Make last column sticky.
index === columns.length - 1 && index === columns.length - 1 &&
'sticky right-0 drop-shadow md:drop-shadow-none', 'sticky right-0 drop-shadow md:drop-shadow-none',

Loading…
Cancel
Save