Skip to content

Commit

Permalink
- remove undefined from prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoorkevich committed Aug 28, 2024
1 parent 0b8857b commit 616153b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export interface TravelDateCalendarProps
numMonthsInMonthPicker?: number;
size?: TravelCalendarSizeVariant;
dateTestId?: (date: Date) => string | undefined;
previousMonthButtonTestId?: string | undefined;
nextMonthButtonTestId?: string | undefined;
previousMonthButtonTestId?: string;
nextMonthButtonTestId?: string;
}

export const TravelDateCalendar: React.FC<TravelDateCalendarProps> = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export interface TravelDateRangeCalendarProps
numMonthsInMonthPicker?: number;
size?: TravelCalendarSizeVariant;
dateTestId?: (date: Date) => string | undefined;
previousMonthButtonTestId?: string | undefined;
nextMonthButtonTestId?: string | undefined;
previousMonthButtonTestId?: string;
nextMonthButtonTestId?: string;
}

export const TravelDateRangeCalendar: React.FC<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export interface TravelDateInputProps
renderBelowCalendar?: (args: RenderBelowSingleDateCalendarArgs) => ReactNode;
size?: TravelCalendarSizeVariant;
dateTestId?: (date: Date) => string | undefined;
previousMonthButtonTestId?: string | undefined;
nextMonthButtonTestId?: string | undefined;
previousMonthButtonTestId?: string;
nextMonthButtonTestId?: string;
}

export const TravelDateInput: React.FC<TravelDateInputProps> = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export interface TravelDateRangeInputProps
renderBelowCalendar?: (args: RenderBelowCalendarArgs) => ReactNode;
size?: TravelCalendarSizeVariant;
dateTestId?: (date: Date) => string | undefined;
previousMonthButtonTestId?: string | undefined;
nextMonthButtonTestId?: string | undefined;
previousMonthButtonTestId?: string;
nextMonthButtonTestId?: string;
}

export const TravelDateRangeInput: React.FC<TravelDateRangeInputProps> = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export interface MonthHeaderProps {
setVisibleMonth: (date: Date) => void;
prevMonthDisabled: boolean;
calendarSize: TravelCalendarSizeVariant;
previousMonthButtonTestId?: string | undefined;
nextMonthButtonTestId?: string | undefined;
previousMonthButtonTestId?: string;
nextMonthButtonTestId?: string;
}

export const MonthHeader: React.FC<MonthHeaderProps> = ({
Expand Down

0 comments on commit 616153b

Please sign in to comment.