From 573b52535278cf99841fa24e3863b578a96d8375 Mon Sep 17 00:00:00 2001 From: bagasbanuna Date: Thu, 11 Dec 2025 14:01:05 +0800 Subject: [PATCH] Fix QC ( Keano ) Fix: - modified: app/(application)/(user)/home.tsx - modified: app/(application)/(user)/voting/create.tsx - modified: components/DateInput/DataTimeAndroid.tsx - modified: components/DateInput/DateTimePickerCustom.tsx - modified: screens/Event/BoxPublishSection.tsx ### No Issue --- app/(application)/(user)/home.tsx | 2 +- app/(application)/(user)/voting/create.tsx | 2 +- components/DateInput/DataTimeAndroid.tsx | 2 ++ components/DateInput/DateTimePickerCustom.tsx | 6 ++++++ screens/Event/BoxPublishSection.tsx | 2 +- 5 files changed, 11 insertions(+), 3 deletions(-) diff --git a/app/(application)/(user)/home.tsx b/app/(application)/(user)/home.tsx index de34524..8591107 100644 --- a/app/(application)/(user)/home.tsx +++ b/app/(application)/(user)/home.tsx @@ -87,7 +87,7 @@ export default function Application() { disabled={true} name="notifications" size={20} - color={MainColor.yellow} + color={MainColor.placeholder} onPress={() => { router.push("/notifications"); }} diff --git a/app/(application)/(user)/voting/create.tsx b/app/(application)/(user)/voting/create.tsx index 9fe2eed..d7a0c8f 100644 --- a/app/(application)/(user)/voting/create.tsx +++ b/app/(application)/(user)/voting/create.tsx @@ -110,7 +110,7 @@ export default function VotingCreate() { setData({ ...data, title: value })} diff --git a/components/DateInput/DataTimeAndroid.tsx b/components/DateInput/DataTimeAndroid.tsx index fd54f97..66a2d5c 100644 --- a/components/DateInput/DataTimeAndroid.tsx +++ b/components/DateInput/DataTimeAndroid.tsx @@ -53,6 +53,8 @@ const DateTimeInput_Android: React.FC = ({ const [selectedDate, setSelectedDate] = useState(value as any); const [selectedTime, setSelectedTime] = useState(value as any); + console.log("Date Android", value) + // Fungsi untuk menggabungkan tanggal dan waktu const combineDateAndTime = useCallback((date: Date, time: Date): Date => { const combined = new Date(date); diff --git a/components/DateInput/DateTimePickerCustom.tsx b/components/DateInput/DateTimePickerCustom.tsx index f1c5cc0..9877bde 100644 --- a/components/DateInput/DateTimePickerCustom.tsx +++ b/components/DateInput/DateTimePickerCustom.tsx @@ -23,6 +23,9 @@ const DateTimePickerCustom: React.FC = ({ minimumDate, disabled = false, }) => { + + console.log("Date Android Comp", value) + return ( <> {Platform.OS === "ios" ? ( @@ -47,6 +50,9 @@ const DateTimePickerCustom: React.FC = ({ maximumDate={maximumDate} minimumDate={minimumDate} disabled={disabled} + value={value as DateTimePickerEvent | Date | null | any} + + /> )} diff --git a/screens/Event/BoxPublishSection.tsx b/screens/Event/BoxPublishSection.tsx index 0794555..79cbc12 100644 --- a/screens/Event/BoxPublishSection.tsx +++ b/screens/Event/BoxPublishSection.tsx @@ -28,7 +28,7 @@ export default function Event_BoxPublishSection({