From cb24f084bdfe44f578df04ab28249b6827fc7a6d Mon Sep 17 00:00:00 2001 From: Vitali Kulikou Date: Fri, 2 Feb 2024 13:08:10 -0600 Subject: [PATCH] Replace deprecated React.SFC type --- types/Props.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/Props.d.ts b/types/Props.d.ts index f8fcd45ab3..483fd7fa99 100644 --- a/types/Props.d.ts +++ b/types/Props.d.ts @@ -44,7 +44,7 @@ export interface DayPickerProps { captionElement?: | React.ReactElement> | React.ComponentClass - | React.SFC; + | React.FunctionComponent; className?: string; classNames?: ClassNames; containerProps?: React.DetailedHTMLProps< @@ -69,7 +69,7 @@ export interface DayPickerProps { navbarElement?: | React.ReactElement> | React.ComponentClass - | React.SFC; + | React.FunctionComponent; numberOfMonths?: number; onBlur?: (e: React.FocusEvent) => void; onCaptionClick?: (month: Date, e: React.MouseEvent) => void; @@ -142,7 +142,7 @@ export interface DayPickerProps { weekdayElement?: | React.ReactElement> | React.ComponentClass - | React.SFC; + | React.FunctionComponent; weekdaysLong?: string[]; weekdaysShort?: string[]; tabIndex?: number;