Skip to content

Commit a1f0443

Browse files
committed
fix(phone-input): fix re-exporting method
1 parent bf74485 commit a1f0443

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/PhoneInputController.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { MuiTelInput } from 'mui-tel-input';
1+
import { MuiTelInput, matchIsValidTel } from 'mui-tel-input';
22
import { useController } from 'react-hook-form';
33
import { useFieldControllerLabels, useOnErrorMessage } from '../hooks/index';
44
import type { DistributiveOmit, FieldControllerProps } from '../types/index';
@@ -7,7 +7,7 @@ import type { MuiTelInputProps } from 'mui-tel-input';
77

88
// Export mui-tel-input method that could help people to make validations
99
// without the need to install the peer-dependency
10-
export { matchIsValidTel } from 'mui-tel-input';
10+
export { matchIsValidTel };
1111

1212
export type PhoneInputControllerProps<FV extends FieldValues> = FieldControllerProps<FV> &
1313
DistributiveOmit<

0 commit comments

Comments
 (0)