Lazy loads phone input (#1566)

This commit is contained in:
Omar López authored and GitHub committed 2022-01-19 16:24:01 +00:00
1 parent e52e1e3e23
commit 116e6d0938
3 files changed
+11 -3

No files matched your search

+3 -2
View File
@@ -1,10 +1,11 @@
import React from "react";
import { default as BasePhoneInput, PhoneInputProps } from "react-phone-number-input";
import BasePhoneInput, { Props as PhoneInputProps } from "react-phone-number-input";
import "react-phone-number-input/style.css";
import classNames from "@lib/classNames";
import { Optional } from "@lib/types/utils";
export const PhoneInput = (props: PhoneInputProps) => (
export const PhoneInput = (props: Optional<PhoneInputProps, "onChange">) => (
<BasePhoneInput
{...props}
className={classNames(