Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ajithsimons committed Feb 7, 2024
1 parent 2ccbc3c commit 9927587
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import { theme } from 'cx-portal-shared-components';

import { IDefaultObject } from '../models/Common';
import { IDefaultObject, ISelectList } from '../models/Common';
import { PolicyModel } from '../models/RecurringUpload.models';
import { Config } from './config';

Expand Down Expand Up @@ -53,6 +53,36 @@ const USER_TYPE_SWITCH: IDefaultObject = {
consumer: 'provider',
};

const DURATION_UNITS: ISelectList[] = [
{
id: 0,
title: 'Hour',
value: 'HOUR',
},
{
id: 1,
title: 'Day',
value: 'DAY',
},
{
id: 2,
title: 'Month',
value: 'MONTH',
},
{
id: 3,
title: 'Year',
value: 'YEAR',
},
];

const DURATION_UNIT_MAPPING = {
HOUR: 'hours',
DAY: 'days',
MONTH: 'months',
YEAR: 'years',
};

const BPN_TYPE_FIELDS = [
{
id: 1,
Expand Down Expand Up @@ -166,6 +196,8 @@ export {
CHECKBOXES,
CONTRACT_STATES,
DEFAULT_POLICY_DATA,
DURATION_UNIT_MAPPING,
DURATION_UNITS,
FRAMEWORKS,
MAX_CONTRACTS_AGREEMENTS,
ONLY_NUM_REGEX,
Expand Down

0 comments on commit 9927587

Please sign in to comment.