preserve cart & checkout elment on refersh

This commit is contained in:
2025-12-31 16:23:37 +03:00
parent 71e1d71c96
commit 2416b37069
9 changed files with 46 additions and 34 deletions

View File

@@ -5,7 +5,6 @@ import { useTranslation } from "react-i18next";
import { useAppDispatch, useAppSelector } from "redux/hooks";
import { Checkbox, Form, Input } from "antd";
import styles from "./SenderformationCard.module.css";
import TextArea from "antd/es/input/TextArea";
import ProText from "components/ProText";
export default function SenderformationCard() {
@@ -14,9 +13,9 @@ export default function SenderformationCard() {
const { giftDetails } = useAppSelector(selectCart);
return (
<ProInputCard title={t("cardDetails.receiverInformation")}>
<ProInputCard title={t("cardDetails.yourInformation")}>
<div className={styles.customerInformationCard}>
<Form.Item name="receiverName">
<Form.Item name="senderName">
<Input
placeholder={t("cardDetails.yourName")}
size="large"
@@ -29,7 +28,7 @@ export default function SenderformationCard() {
/>
</Form.Item>
<ProPhoneInput
propName="yourPhone"
propName="senderPhone"
value={giftDetails?.senderPhone}
onChange={(e) => {
dispatch(updateGiftDetails({ senderPhone: e }));