From 5ea3aac37daf7124825cb0518dc70e6bf4e8bf06 Mon Sep 17 00:00:00 2001 From: Zhang Ziqing <69516975+ziqing26@users.noreply.github.com> Date: Fri, 4 Nov 2022 01:57:40 +0800 Subject: [PATCH] [offers][feat] add job type for dashboard cards (#503) --- .../src/components/offers/dashboard/DashboardOfferCard.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/portal/src/components/offers/dashboard/DashboardOfferCard.tsx b/apps/portal/src/components/offers/dashboard/DashboardOfferCard.tsx index dda493ec..3b013c2c 100644 --- a/apps/portal/src/components/offers/dashboard/DashboardOfferCard.tsx +++ b/apps/portal/src/components/offers/dashboard/DashboardOfferCard.tsx @@ -5,6 +5,7 @@ import { } from '@heroicons/react/20/solid'; import { JobType } from '@prisma/client'; +import { JobTypeLabel } from '~/components/offers/constants'; import type { JobTitleType } from '~/components/shared/JobTitles'; import { getLabelForJobTitleType } from '~/components/shared/JobTitles'; @@ -33,7 +34,8 @@ export default function DashboardProfileCard({

- {getLabelForJobTitleType(title as JobTitleType)} + {getLabelForJobTitleType(title as JobTitleType)}{' '} + {jobType && <>({JobTypeLabel[jobType]})}

{company?.name && (