Replaced eslint rule twenty/no-spread-props to react/jsx-props-no-spreading (#1976)

* Replaced eslint rule twenty/no-spread-props to react/jsx-props-no-spreading

* Disable props spread on external libraries

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Gaurav
2023-10-13 20:22:19 +05:30
committed by GitHub
parent d56c5fcbf6
commit acde034a1d
13 changed files with 38 additions and 157 deletions

View File

@ -28,6 +28,7 @@ export const SpreadsheetImportProvider = (
<SpreadsheetImport
isOpen={true}
onClose={handleClose}
// eslint-disable-next-line react/jsx-props-no-spreading
{...spreadsheetImport.options}
/>
)}

View File

@ -125,9 +125,15 @@ export const DropZone = ({ onContinue, isLoading }: DropZoneProps) => {
});
return (
<StyledContainer {...getRootProps()}>
<StyledContainer
// eslint-disable-next-line react/jsx-props-no-spreading
{...getRootProps()}
>
{isDragActive && <StyledOverlay />}
<input {...getInputProps()} />
<input
// eslint-disable-next-line react/jsx-props-no-spreading
{...getInputProps()}
/>
{isDragActive ? (
<StyledText>Drop file here...</StyledText>
) : loading || isLoading ? (