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