The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Remove the `as any` casts in 2 files of modules/ui/input/components/internal/date/components (#28838)
twenty-pr-author[bot]fc69b162c358
diff --git a/packages/twenty-front/src/modules/ui/input/components/internal/date/components/DatePickerInput.tsx b/packages/twenty-front/src/modules/ui/input/components/internal/date/components/DatePickerInput.tsxindex 8323595ad0d..e4f1f4799a1 100644--- a/packages/twenty-front/src/modules/ui/input/components/internal/date/components/DatePickerInput.tsx+++ b/packages/twenty-front/src/modules/ui/input/components/internal/date/components/DatePickerInput.tsx@@ -91,7 +91,7 @@ export const DatePickerInput = ({? (parsePlainDateToDateInputString(internalDate) ?? undefined): undefined;- const { ref, setValue, value } = useIMask(+ const { ref, setValue, value } = useIMask<HTMLInputElement>({mask: Date,pattern,@@ -132,7 +132,7 @@ export const DatePickerInput = ({type="text"aria-label={t`Date`}disabled={readonly}- ref={ref as any}+ ref={ref}value={value}onChange={() => {}} // Prevent React warning/>diff --git a/packages/twenty-front/src/modules/ui/input/components/internal/date/components/DateTimePickerInput.tsx b/packages/twenty-front/src/modules/ui/input/components/internal/date/components/DateTimePickerInput.tsxindex c8568632a0f..954fcea596e 100644--- a/packages/twenty-front/src/modules/ui/input/components/internal/date/components/DateTimePickerInput.tsx+++ b/packages/twenty-front/src/modules/ui/input/components/internal/date/components/DateTimePickerInput.tsx@@ -109,7 +109,7 @@ export const DateTimePickerInput = ({): null;- const { ref, setValue } = useIMask(+ const { ref, setValue } = useIMask<HTMLInputElement>({mask: Date,pattern,@@ -189,7 +189,7 @@ export const DateTimePickerInput = ({disabled={shouldDisplayReadOnly}type="text"aria-label={t`Date and time`}- ref={ref as any}+ ref={ref}onFocus={!shouldDisplayReadOnly ? onFocus : undefined}/><TimeZoneAbbreviation