-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch upcoming React 18 SFC compile breaks in [email protected] (#…
- Loading branch information
Showing
3 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
diff --git a/types/Props.d.ts b/types/Props.d.ts | ||
index f8fcd45ab3048d9b34709eba1797597ac2facdec..3afa05a42f485ff23899f20df2ff9d85bf588eed 100644 | ||
--- a/types/Props.d.ts | ||
+++ b/types/Props.d.ts | ||
@@ -44,7 +44,7 @@ export interface DayPickerProps { | ||
captionElement?: | ||
| React.ReactElement<Partial<CaptionElementProps>> | ||
| React.ComponentClass<CaptionElementProps> | ||
- | React.SFC<CaptionElementProps>; | ||
+ | React.FC<CaptionElementProps>; | ||
className?: string; | ||
classNames?: ClassNames; | ||
containerProps?: React.DetailedHTMLProps< | ||
@@ -69,7 +69,7 @@ export interface DayPickerProps { | ||
navbarElement?: | ||
| React.ReactElement<Partial<NavbarElementProps>> | ||
| React.ComponentClass<NavbarElementProps> | ||
- | React.SFC<NavbarElementProps>; | ||
+ | React.FC<NavbarElementProps>; | ||
numberOfMonths?: number; | ||
onBlur?: (e: React.FocusEvent<HTMLDivElement>) => void; | ||
onCaptionClick?: (month: Date, e: React.MouseEvent<HTMLDivElement>) => void; | ||
@@ -142,7 +142,7 @@ export interface DayPickerProps { | ||
weekdayElement?: | ||
| React.ReactElement<Partial<WeekdayElementProps>> | ||
| React.ComponentClass<WeekdayElementProps> | ||
- | React.SFC<WeekdayElementProps>; | ||
+ | React.FC<WeekdayElementProps>; | ||
weekdaysLong?: string[]; | ||
weekdaysShort?: string[]; | ||
tabIndex?: number; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fc04fda
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Patch upcoming React 18 SFC compile breaks in [email protected] (#7146)
Build artifact links for this commit: documentation | landing | table | demoThis is an automated comment from the deploy-preview CircleCI job.