From 21e60a6a275ab5cc4a1048e4dfb53183a4f92bd3 Mon Sep 17 00:00:00 2001 From: Birk Johansson Date: Wed, 9 Oct 2024 17:39:38 +0200 Subject: [PATCH] fix(calendar): fix minor type issues (#1588) * fix(calendar): fix minor type issues * style: run prettier --- components/calendar/types/index.d.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/components/calendar/types/index.d.ts b/components/calendar/types/index.d.ts index bc632cddd..5b1d0bb99 100644 --- a/components/calendar/types/index.d.ts +++ b/components/calendar/types/index.d.ts @@ -20,6 +20,11 @@ export interface CalendarProps { * the size of a single cell in the table forming the calendar */ cellSize?: string + + /** + * Add a "clear" button to delete the selected date + */ + clearable?: boolean /** * the currently selected date using an iso-like format YYYY-MM-DD, in the calendar system provided (not iso8601) */ @@ -52,10 +57,7 @@ export interface CalendarProps { export const Calendar: React.FC -export type CalendarInputProps = Omit< - InputFieldProps, - 'label' | 'type' | 'value' -> & +export type CalendarInputProps = Omit & CalendarProps export const CalendarInput: React.FC