Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit c4f5d2a

Browse files
committed
feat: add price state management in EditGiftScreen for gift editing functionality
1 parent f5e1417 commit c4f5d2a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app/(gifts)/edit-gift.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const EditGiftScreen = () => {
2424

2525
const [title, setTitle] = useState(params?.title || '');
2626
const [description, setDescription] = useState(params?.description || '');
27+
const [price, setPrice] = useState(params?.price || 0);
2728
const [recipient, setRecipient] = useState(params?.recipient || '');
2829
const [selectedDate, setSelectedDate] = useState(
2930
params?.selectedDate ? new Date(params.selectedDate) : new Date(),
@@ -40,6 +41,7 @@ const EditGiftScreen = () => {
4041
id: params.id,
4142
title,
4243
description,
44+
price,
4345
recipient,
4446
selectedDate: selectedDate.toISOString(),
4547
image,

0 commit comments

Comments
 (0)