mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2026-04-04 19:39:43 +08:00
[offers][fix] convert education fields to display string (#529)
This commit is contained in:
@@ -3,6 +3,8 @@ import {
|
||||
LightBulbIcon,
|
||||
} from '@heroicons/react/24/outline';
|
||||
|
||||
import type { EducationType } from '~/components/offers/EducationFields';
|
||||
import { getLabelForEducationFieldType } from '~/components/offers/EducationFields';
|
||||
import type { EducationDisplayData } from '~/components/offers/types';
|
||||
|
||||
type Props = Readonly<{
|
||||
@@ -19,7 +21,16 @@ export default function EducationCard({
|
||||
<div className="flex items-center">
|
||||
<LightBulbIcon className="mr-1 h-5" />
|
||||
<span className="text-semibold ml-1">
|
||||
{field ? `${type ?? 'N/A'}, ${field}` : type ?? `N/A`}
|
||||
{field
|
||||
? `${
|
||||
type ? type.charAt(0).toUpperCase() + type.slice(1) : 'N/A'
|
||||
}, ${
|
||||
getLabelForEducationFieldType(field as EducationType) ??
|
||||
'N/A'
|
||||
}`
|
||||
: type
|
||||
? type.charAt(0).toUpperCase() + type.slice(1)
|
||||
: `N/A`}
|
||||
</span>
|
||||
</div>
|
||||
{school && (
|
||||
|
||||
Reference in New Issue
Block a user