File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 17
17
"@typescript-eslint/no-explicit-any": 0,
18
18
"@typescript-eslint/no-non-null-assertion": 0,
19
19
"@typescript-eslint/no-unused-vars": 0,
20
- "@typescript-eslint/no-empty-function": 0
20
+ "@typescript-eslint/no-empty-function": 0,
21
+ "react/prop-types": 0
21
22
},
22
23
"env": {
23
24
"browser": true,
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ export const defaultRSIProps: Partial<RsiProps<any>> = {
23
23
parseRaw : true ,
24
24
} as const
25
25
26
- export const ReactSpreadsheetImport = < T extends string > ( props : RsiProps < T > ) => {
26
+ export const ReactSpreadsheetImport = < T extends string > ( propsWithoutDefaults : RsiProps < T > ) => {
27
+ const props = merge ( defaultRSIProps , propsWithoutDefaults )
27
28
const mergedTranslations =
28
29
props . translations !== translations ? merge ( translations , props . translations ) : translations
29
30
const mergedThemes = props . rtl
@@ -38,5 +39,3 @@ export const ReactSpreadsheetImport = <T extends string>(props: RsiProps<T>) =>
38
39
</ Providers >
39
40
)
40
41
}
41
-
42
- ReactSpreadsheetImport . defaultProps = defaultRSIProps
You can’t perform that action at this time.
0 commit comments