-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When user wants to import data, error in devtools appears #6827
Comments
I think this should be fairly easy to fix (?). |
I'll pick this up @FelixMalfait |
Thank you @gazjones00! |
#7406) This PR addresses #6827 React has deprecated the use of `defaultProps` on function components and will remove support in a future major release. This commit replaces the usage of `defaultProps` in the `SpreadsheetImport` component with default parameters to fix the following warning: **Changes:** - Removed `SpreadsheetImport.defaultProps = defaultSpreadsheetImportProps;` - Merged `defaultSpreadsheetImportProps` with incoming `props` using object spread syntax. - Adjusted the component to use the merged props (`mergedProps`) instead of `props`.
@FelixMalfait can we mark this as closed, please? |
Yes @gazjones00 thank you! Next time you can add "fixes #xxxx" in your PR description to link it and close the issue automatically |
Sounds good, thank you! |
twentyhq#7406) This PR addresses twentyhq#6827 React has deprecated the use of `defaultProps` on function components and will remove support in a future major release. This commit replaces the usage of `defaultProps` in the `SpreadsheetImport` component with default parameters to fix the following warning: **Changes:** - Removed `SpreadsheetImport.defaultProps = defaultSpreadsheetImportProps;` - Merged `defaultSpreadsheetImportProps` with incoming `props` using object spread syntax. - Adjusted the component to use the merged props (`mergedProps`) instead of `props`.
Scenario:
Actual: Error in devtools appears
Expected: No error should appear in devtools
Error:
The text was updated successfully, but these errors were encountered: