gift: enhacnements

This commit is contained in:
2026-01-01 16:16:25 +03:00
parent e5b86d09a3
commit 78f1227a3d
7 changed files with 132 additions and 81 deletions

View File

@@ -64,6 +64,21 @@ export default function CardDetailsPage() {
}
}, [subdomain, form, navigate]);
useEffect(() => {
form.setFieldsValue({
receiverName: giftDetails?.receiverName,
senderName: giftDetails?.senderName,
senderPhone: giftDetails?.senderPhone,
senderEmail: giftDetails?.senderEmail,
receiverPhone: giftDetails?.receiverPhone,
message: giftDetails?.message,
amount: giftDetails?.amount,
cardId: giftDetails?.cardId,
giftType: giftDetails?.giftType,
isSecret: giftDetails?.isSecret,
});
}, [giftDetails?.receiverName, giftDetails?.senderName, form]);
return (
<>
<Layout>

View File

@@ -75,7 +75,7 @@ export function GiftAmountBottomSheet({
value={amount}
onChange={(value) => {
setAmount(value?.toString() || "");
dispatch(updateSplitBillAmount(Number(value) || 0));
dispatch(updateGiftDetails({ amount: Number(value) || 0 }));
}}
placeholder={t("cardDetails.amount")}
min={0}