diff --git a/apps/portal/src/components/resumes/browse/ResumeListItem.tsx b/apps/portal/src/components/resumes/browse/ResumeListItem.tsx index 00dbcc4f..b8740e2a 100644 --- a/apps/portal/src/components/resumes/browse/ResumeListItem.tsx +++ b/apps/portal/src/components/resumes/browse/ResumeListItem.tsx @@ -89,9 +89,7 @@ export default function ResumeListItem({ href, resumeInfo }: Props) { addSuffix: true, })} by ${resumeInfo.user}`} -
- {getFilterLabel('location', resumeInfo.location)} -
+
{resumeInfo.location}
diff --git a/apps/portal/src/utils/resumes/resumeFilters.ts b/apps/portal/src/utils/resumes/resumeFilters.ts index 0943f02c..9a31b109 100644 --- a/apps/portal/src/utils/resumes/resumeFilters.ts +++ b/apps/portal/src/utils/resumes/resumeFilters.ts @@ -85,12 +85,28 @@ export const EXPERIENCES: Array = [ }, ]; -export const LOCATIONS: Array = []; +export const LOCATIONS: Array = [ + { + id: '196', + label: 'Singapore', + value: '196', + }, + { + id: '231', + label: 'United States', + value: '231', + }, + { + id: '101', + label: 'India', + value: '101', + }, +]; export const INITIAL_FILTER_STATE: FilterState = { experience: EXPERIENCES, isUnreviewed: true, - location: [], + location: LOCATIONS, role: ROLES, }; @@ -152,15 +168,17 @@ export const isInitialFilterState = (filters: FilterState) => export const getFilterLabel = ( filterId: FilterId | 'sort', filterValue: SortOrder | string, -) => { +): string | undefined => { + if (filterId === 'location') { + return filterValue; + } + let filters: Array = []; switch (filterId) { case 'experience': filters = EXPERIENCES; break; - case 'location': - break; case 'role': filters = Object.entries(JobTitleLabels).map(([slug, label]) => ({ id: slug,