fix missed props
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { Form } from "antd";
|
||||
import useFormInstance from "antd/es/form/hooks/useFormInstance";
|
||||
import { TitleProps } from "antd/es/typography/Title";
|
||||
import { PhoneNumberUtil } from "google-libphonenumber";
|
||||
import { FunctionComponent } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import PhoneInput from "react-phone-input-2";
|
||||
import { useAppSelector } from "redux/hooks";
|
||||
import { ProBlack1 } from "ThemeConstants";
|
||||
import { PhoneNumberUtil } from "google-libphonenumber";
|
||||
import useFormInstance from "antd/es/form/hooks/useFormInstance";
|
||||
|
||||
interface ProPhoneInput extends TitleProps {
|
||||
propName?: string;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import ProInputCard from "components/ProInputCard/ProInputCard.tsx";
|
||||
import ProPhoneInput from "components/ProPhoneInput";
|
||||
import { selectCart } from "features/order/orderSlice";
|
||||
import { OrderType } from "pages/checkout/hooks/types.ts";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useAppSelector } from "redux/hooks";
|
||||
import { OrderType } from "pages/checkout/hooks/types.ts";
|
||||
|
||||
export default function PhoneCard() {
|
||||
const { t } = useTranslation();
|
||||
@@ -13,7 +13,7 @@ export default function PhoneCard() {
|
||||
orderType !== OrderType.Gift && (
|
||||
<>
|
||||
<ProInputCard title={t("checkout.phoneNumber")}>
|
||||
<ProPhoneInput />
|
||||
<ProPhoneInput label={t("login.phone")} propName="phone" />
|
||||
</ProInputCard>
|
||||
</>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user