File tree Expand file tree Collapse file tree
apps/meteor/client/components/PhoneNumberFieldList Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ import userEvent from '@testing-library/user-event';
44import { axe } from 'jest-axe' ;
55import { useFieldArray , useForm } from 'react-hook-form' ;
66
7- import type { PhoneField } from './PhoneNumberFieldList' ;
7+ import type { PhoneFieldType } from './PhoneNumberFieldList' ;
88import PhoneNumberFieldList from './PhoneNumberFieldList' ;
99
10- type PhoneFormValues = { phones : PhoneField [ ] } ;
10+ type PhoneFormValues = { phones : PhoneFieldType [ ] } ;
1111
1212type TestComponentProps = {
13- initialPhones ?: PhoneField [ ] ;
13+ initialPhones ?: PhoneFieldType [ ] ;
1414 onAddPhone : jest . Mock ;
1515 onRemovePhone : jest . Mock ;
1616} ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { useTranslation } from 'react-i18next';
88const E164_PHONE_REGEX = / ^ \+ ? [ 1 - 9 ] \d { 1 , 14 } $ / ;
99const MAX_PHONE_NUMBER_LABEL_LENGTH = 50 ;
1010
11- export type PhoneField = {
11+ export type PhoneFieldType = {
1212 id : string ;
1313 number ?: string ;
1414 label ?: string ;
@@ -17,9 +17,9 @@ export type PhoneField = {
1717
1818type PhoneNumberFieldListProps < T extends FieldValues > = {
1919 name : ArrayPath < T > ;
20- phones : PhoneField [ ] ;
20+ phones : PhoneFieldType [ ] ;
2121 control : Control < T > ;
22- onAddPhone : ( phone : Omit < Required < PhoneField > , 'id' > ) => void ;
22+ onAddPhone : ( phone : Omit < Required < PhoneFieldType > , 'id' > ) => void ;
2323 onRemovePhone : ( index : number ) => void ;
2424} ;
2525
Original file line number Diff line number Diff line change 11export { default } from './PhoneNumberFieldList' ;
2- export type { PhoneField } from './PhoneNumberFieldList' ;
2+ export type { PhoneFieldType } from './PhoneNumberFieldList' ;
You can’t perform that action at this time.
0 commit comments