Skip to content

Commit 383480e

Browse files
committed
renamed function name
1 parent 8aeeb13 commit 383480e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/apps/onboarding/src/components/modal-add-work/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import classNames from 'classnames'
44
import moment from 'moment'
55

66
import { Button, IconSolid, InputDatePicker, InputSelect, InputText, Tooltip } from '~/libs/ui'
7-
import { getIndustryOptionLabels, getIndustryOptionValues, INDUSTRIES_OPTIONS } from '~/libs/shared'
7+
import { getIndustryOptionLabel, getIndustryOptionValue, INDUSTRIES_OPTIONS } from '~/libs/shared'
88

99
import FormInputCheckbox from '../form-input-checkbox'
1010
import OnboardingBaseModal from '../onboarding-base-modal'
@@ -23,8 +23,8 @@ interface ModalAddWorkProps {
2323

2424
const industryOptions: any = _.sortBy(INDUSTRIES_OPTIONS)
2525
.map(v => ({
26-
label: getIndustryOptionLabels(v),
27-
value: getIndustryOptionValues(v),
26+
label: getIndustryOptionLabel(v),
27+
value: getIndustryOptionValue(v),
2828
}))
2929

3030
const ModalAddWork: FC<ModalAddWorkProps> = (props: ModalAddWorkProps) => {

src/apps/profiles/src/member-profile/work-expirence/ModifyWorkExpirenceModal/ModifyWorkExpirenceModal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
UserTraitCategoryNames,
1212
UserTraitIds,
1313
} from '~/libs/core'
14-
import { getIndustryOptionLabels, getIndustryOptionValues, INDUSTRIES_OPTIONS } from '~/libs/shared'
14+
import { getIndustryOptionLabel, getIndustryOptionValue, INDUSTRIES_OPTIONS } from '~/libs/shared'
1515

1616
import { WorkExpirenceCard } from '../WorkExpirenceCard'
1717

@@ -58,8 +58,8 @@ const ModifyWorkExpirenceModal: FC<ModifyWorkExpirenceModalProps> = (props: Modi
5858

5959
const industryOptions: any = sortBy(INDUSTRIES_OPTIONS)
6060
.map(v => ({
61-
label: getIndustryOptionLabels(v),
62-
value: getIndustryOptionValues(v),
61+
label: getIndustryOptionLabel(v),
62+
value: getIndustryOptionValue(v),
6363
}))
6464

6565
function handleModifyWorkExpirenceSave(): void {

src/libs/shared/lib/utils/industry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const IndustryLabelToEnum: {
1616
'Travel & hospitality': 'TravelAndHospitality',
1717
}
1818

19-
export const getIndustryOptionValues = (v: string): string => {
19+
export const getIndustryOptionValue = (v: string): string => {
2020
const values = Object.values(IndustryEnumToLabel)
2121
const keys = Object.keys(IndustryEnumToLabel)
2222
if (values.includes(v)) {
@@ -30,7 +30,7 @@ export const getIndustryOptionValues = (v: string): string => {
3030
return v
3131
}
3232

33-
export const getIndustryOptionLabels = (v: string): string => {
33+
export const getIndustryOptionLabel = (v: string): string => {
3434
const keys = Object.keys(IndustryEnumToLabel)
3535
if (keys.includes(v)) {
3636
return IndustryEnumToLabel[v]

0 commit comments

Comments
 (0)