Skip to content

Commit

Permalink
fix(calendar): fix minor type issues (#1588)
Browse files Browse the repository at this point in the history
* fix(calendar): fix minor type issues

* style: run prettier
  • Loading branch information
Birkbjo authored Oct 9, 2024
1 parent d5d4714 commit 21e60a6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions components/calendar/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/
Expand Down Expand Up @@ -52,10 +57,7 @@ export interface CalendarProps {

export const Calendar: React.FC<CalendarProps>

export type CalendarInputProps = Omit<
InputFieldProps,
'label' | 'type' | 'value'
> &
export type CalendarInputProps = Omit<InputFieldProps, 'type' | 'value'> &
CalendarProps

export const CalendarInput: React.FC<CalendarInputProps>

0 comments on commit 21e60a6

Please sign in to comment.