Replaces deprecatedReact.SFC type with React.FunctionComponent.
It's required to passing @types/react 18 linter check:
node_modules/react-day-picker/types/Props.d.ts:47:13 - error TS2694: Namespace 'React' has no exported member 'SFC'.
47 | React.SFC<CaptionElementProps>;
Type of Change
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update
Checklist
Before submitting your pull request, please make sure the following is done:
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)
[ ] I have followed the coding guidelines in this project
[ ] I have tested my changes on different browsers and screen sizes
Linked Issues
If this PR addresses any existing issues, please link them here. Example: Fixes #123
Test Plan
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
Screenshots (if appropriate)
Include screenshots or GIFs if relevant. This is especially important for UI-related changes.
Further Comments
If you have any additional comments or questions, please add them here.
Description
Replaces deprecated
React.SFC
type withReact.FunctionComponent
.It's required to passing
@types/react
18 linter check:Type of Change
Checklist
Before submitting your pull request, please make sure the following is done:
Linked Issues
If this PR addresses any existing issues, please link them here. Example:
Fixes #123
Test Plan
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
Screenshots (if appropriate)
Include screenshots or GIFs if relevant. This is especially important for UI-related changes.
Further Comments
If you have any additional comments or questions, please add them here.