From 095f190f992ccb105773253237c5505dc3a53e8b Mon Sep 17 00:00:00 2001 From: puriphatt Date: Tue, 21 Jan 2025 16:29:19 +0700 Subject: [PATCH] feat: 03 => update expiration date handling to accept string format and improve validation --- .../03_customer-management/ExpirationDate.vue | 4 ++-- src/pages/03_customer-management/MainPage.vue | 12 ++++++------ src/stores/utils/index.ts | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/03_customer-management/ExpirationDate.vue b/src/components/03_customer-management/ExpirationDate.vue index 1a279d02..e0071d01 100644 --- a/src/components/03_customer-management/ExpirationDate.vue +++ b/src/components/03_customer-management/ExpirationDate.vue @@ -2,7 +2,7 @@ import { calculateDaysUntilExpire } from 'stores/utils'; defineProps<{ - expirationDate: Date; + expirationDate?: Date | string; showAllDay?: boolean; }>(); @@ -10,7 +10,7 @@ defineProps<{