From d4a8c9932b98ea9c92c84ae0229bf701dc754ff7 Mon Sep 17 00:00:00 2001 From: Rizky Date: Fri, 5 Jul 2024 01:00:59 -0700 Subject: [PATCH] fix --- comps/custom/Datepicker/components/Calendar/Days.tsx | 4 ++-- comps/form/field/type/TypeInput.tsx | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/comps/custom/Datepicker/components/Calendar/Days.tsx b/comps/custom/Datepicker/components/Calendar/Days.tsx index 850691a..0c4e233 100755 --- a/comps/custom/Datepicker/components/Calendar/Days.tsx +++ b/comps/custom/Datepicker/components/Calendar/Days.tsx @@ -212,10 +212,10 @@ const Days: React.FC = ({ !activeDateData(day).active ? hoverClassByDay(day) : activeDateData(day).className, - isDateDisabled(day, type) && "c-line-through" + isDateDisabled(day, type) && "c-text-gray-400 c-cursor-not-allowed" ); } - return cn(baseClass, isDateDisabled(day, type) && "c-line-through", "c-text-gray-400"); + return cn(baseClass, isDateDisabled(day, type) && "c-cursor-not-allowed", "c-text-gray-400"); }, [activeDateData, hoverClassByDay, isDateDisabled] ); diff --git a/comps/form/field/type/TypeInput.tsx b/comps/form/field/type/TypeInput.tsx index ce64d63..8af13de 100755 --- a/comps/form/field/type/TypeInput.tsx +++ b/comps/form/field/type/TypeInput.tsx @@ -173,7 +173,6 @@ export const FieldTypeInput: FC<{ case "rich-text": return ; case "date": - console.log(field.min_date instanceof Date) return (