This commit is contained in:
Rizky 2024-07-05 01:00:59 -07:00
parent 15a37a2b27
commit d4a8c9932b
2 changed files with 2 additions and 3 deletions

View File

@ -212,10 +212,10 @@ const Days: React.FC<Props> = ({
!activeDateData(day).active !activeDateData(day).active
? hoverClassByDay(day) ? hoverClassByDay(day)
: activeDateData(day).className, : 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] [activeDateData, hoverClassByDay, isDateDisabled]
); );

View File

@ -173,7 +173,6 @@ export const FieldTypeInput: FC<{
case "rich-text": case "rich-text":
return <FieldRichText field={field} fm={fm} prop={prop} />; return <FieldRichText field={field} fm={fm} prop={prop} />;
case "date": case "date":
console.log(field.min_date instanceof Date)
return ( return (
<Datepicker <Datepicker
value={{ startDate: value, endDate: value }} value={{ startDate: value, endDate: value }}