Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: replace defaultProps with default parameters in SpreadsheetImport (
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`.
- Loading branch information