Kantongku: ganti onChange ke onValueChange+onDismiss (fix deprecation)

This commit is contained in:
Bro
2026-08-16 21:11:34 +07:00
parent c601a688e0
commit 983a545e2c
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -205,10 +205,11 @@ export function AddTransactionScreen() {
value={occurredAt}
mode="date"
maximumDate={new Date()}
onChange={(e, d) => {
onValueChange={(e, d) => {
setShowDate(false);
if (d) setOccurredAt(d);
}}
onDismiss={() => setShowDate(false)}
/>
)}
+2 -1
View File
@@ -200,10 +200,11 @@ export function EditTransactionScreen() {
value={occurredAt}
mode="date"
maximumDate={new Date()}
onChange={(e, d) => {
onValueChange={(e, d) => {
setShowDate(false);
if (d) setOccurredAt(d);
}}
onDismiss={() => setShowDate(false)}
/>
)}