diff --git a/front/src/modules/activities/table/components/CellCommentChip.tsx b/front/src/modules/activities/table/components/CellCommentChip.tsx
index 5b89dedc5..896e97b2a 100644
--- a/front/src/modules/activities/table/components/CellCommentChip.tsx
+++ b/front/src/modules/activities/table/components/CellCommentChip.tsx
@@ -7,13 +7,12 @@ type CellCommentChipProps = CommentChipProps;
// TODO: tie those fixed values to the other components in the cell
const StyledCellWrapper = styled.div``;
-export const CellCommentChip = (props: CellCommentChipProps) => {
- if (props.count === 0) return null;
+export const CellCommentChip = ({ count, onClick }: CellCommentChipProps) => {
+ if (count === 0) return null;
return (
- {/* eslint-disable-next-line twenty/no-spread-props */}
-
+
);
};
diff --git a/front/src/modules/auth/components/Logo.tsx b/front/src/modules/auth/components/Logo.tsx
index e79922864..681695090 100644
--- a/front/src/modules/auth/components/Logo.tsx
+++ b/front/src/modules/auth/components/Logo.tsx
@@ -2,7 +2,7 @@ import styled from '@emotion/styled';
import { getImageAbsoluteURIOrBase64 } from '@/users/utils/getProfilePictureAbsoluteURI';
-type LogoProps = React.ComponentProps<'div'> & {
+type LogoProps = {
workspaceLogo?: string | null;
};
@@ -47,19 +47,17 @@ const StyledMainLogo = styled.div`
width: 100%;
`;
-export const Logo = ({ workspaceLogo, ...props }: LogoProps) => {
+export const Logo = ({ workspaceLogo }: LogoProps) => {
if (!workspaceLogo) {
return (
- // eslint-disable-next-line twenty/no-spread-props
-
+
);
}
return (
- // eslint-disable-next-line twenty/no-spread-props
-
+
diff --git a/front/src/modules/auth/components/Modal.tsx b/front/src/modules/auth/components/Modal.tsx
index 813ffc0eb..4c1d61884 100644
--- a/front/src/modules/auth/components/Modal.tsx
+++ b/front/src/modules/auth/components/Modal.tsx
@@ -8,11 +8,10 @@ const StyledContent = styled(UIModal.Content)`
width: calc(400px - ${({ theme }) => theme.spacing(10 * 2)});
`;
-type AuthModalProps = React.ComponentProps<'div'>;
+type AuthModalProps = { children: React.ReactNode };
-export const AuthModal = ({ children, ...restProps }: AuthModalProps) => (
- // eslint-disable-next-line twenty/no-spread-props
-
+export const AuthModal = ({ children }: AuthModalProps) => (
+
{children}
);
diff --git a/front/src/modules/auth/sign-in-up/components/FooterNote.tsx b/front/src/modules/auth/sign-in-up/components/FooterNote.tsx
index 1a61d4685..8ef2ee724 100644
--- a/front/src/modules/auth/sign-in-up/components/FooterNote.tsx
+++ b/front/src/modules/auth/sign-in-up/components/FooterNote.tsx
@@ -1,7 +1,7 @@
import React from 'react';
import styled from '@emotion/styled';
-type FooterNoteProps = React.ComponentProps<'div'>;
+type FooterNoteProps = { children: React.ReactNode };
const StyledContainer = styled.div`
align-items: center;
@@ -11,7 +11,6 @@ const StyledContainer = styled.div`
text-align: center;
`;
-export const FooterNote = (props: FooterNoteProps) => (
- // eslint-disable-next-line twenty/no-spread-props
-
+export const FooterNote = ({ children }: FooterNoteProps) => (
+ {children}
);
diff --git a/front/src/modules/companies/components/CompanyProgressPicker.tsx b/front/src/modules/companies/components/CompanyProgressPicker.tsx
index 4264fa15a..300e72211 100644
--- a/front/src/modules/companies/components/CompanyProgressPicker.tsx
+++ b/front/src/modules/companies/components/CompanyProgressPicker.tsx
@@ -99,7 +99,7 @@ export const CompanyProgressPicker = ({
) : (
<>
setIsProgressSelectionUnfolded(true)}
>
diff --git a/front/src/modules/spreadsheet-import/components/Heading.tsx b/front/src/modules/spreadsheet-import/components/Heading.tsx
index 52c2ad828..e58e452c9 100644
--- a/front/src/modules/spreadsheet-import/components/Heading.tsx
+++ b/front/src/modules/spreadsheet-import/components/Heading.tsx
@@ -1,7 +1,7 @@
import React from 'react';
import styled from '@emotion/styled';
-export type HeadingProps = React.ComponentProps<'div'> & {
+export type HeadingProps = {
title: string;
description?: string;
};
@@ -27,9 +27,8 @@ const StyledDescription = styled.span`
text-align: center;
`;
-export const Heading = ({ title, description, ...props }: HeadingProps) => (
- // eslint-disable-next-line twenty/no-spread-props
-
+export const Heading = ({ title, description }: HeadingProps) => (
+
{title}
{description && {description}}
diff --git a/front/src/modules/spreadsheet-import/components/Table.tsx b/front/src/modules/spreadsheet-import/components/Table.tsx
index 743044b2d..5dc2b2f86 100644
--- a/front/src/modules/spreadsheet-import/components/Table.tsx
+++ b/front/src/modules/spreadsheet-import/components/Table.tsx
@@ -111,11 +111,36 @@ type TableProps = DataGridProps & {
hiddenHeader?: boolean;
};
-export const Table = (props: TableProps) => {
+export const Table = ({
+ className,
+ columns,
+ components,
+ headerRowHeight,
+ rowKeyGetter,
+ rows,
+ onRowClick,
+ onRowsChange,
+ onSelectedRowsChange,
+ selectedRows,
+}: TableProps) => {
const { rtl } = useSpreadsheetImportInternal();
return (
- // eslint-disable-next-line twenty/no-spread-props
-
+
);
};
diff --git a/front/src/modules/ui/button/components/MainButton.tsx b/front/src/modules/ui/button/components/MainButton.tsx
index 34726ede6..a6b40ed5f 100644
--- a/front/src/modules/ui/button/components/MainButton.tsx
+++ b/front/src/modules/ui/button/components/MainButton.tsx
@@ -103,12 +103,13 @@ export const MainButton = ({
title,
fullWidth = false,
variant = 'primary',
- ...props
+ type,
+ onClick,
+ disabled,
}: MainButtonProps) => {
const theme = useTheme();
return (
- // eslint-disable-next-line twenty/no-spread-props
-
+
{Icon && }
{title}
diff --git a/front/src/modules/ui/button/components/RoundedIconButton.tsx b/front/src/modules/ui/button/components/RoundedIconButton.tsx
index 3c7ccccba..9f0c4915c 100644
--- a/front/src/modules/ui/button/components/RoundedIconButton.tsx
+++ b/front/src/modules/ui/button/components/RoundedIconButton.tsx
@@ -35,13 +35,13 @@ type RoundedIconButtonProps = {
export const RoundedIconButton = ({
Icon,
- ...props
+ onClick,
+ disabled,
}: RoundedIconButtonProps) => {
const theme = useTheme();
return (
- // eslint-disable-next-line twenty/no-spread-props
-
+
{}
);
diff --git a/front/src/modules/ui/checkmark/components/AnimatedCheckmark.tsx b/front/src/modules/ui/checkmark/components/AnimatedCheckmark.tsx
index a36c52317..ac969b1c1 100644
--- a/front/src/modules/ui/checkmark/components/AnimatedCheckmark.tsx
+++ b/front/src/modules/ui/checkmark/components/AnimatedCheckmark.tsx
@@ -15,7 +15,6 @@ export const AnimatedCheckmark = ({
color,
duration = 0.5,
size = 28,
- ...restProps
}: AnimatedCheckmarkProps) => {
const theme = useTheme();
return (
@@ -26,8 +25,6 @@ export const AnimatedCheckmark = ({
height={size}
>
;
-export const Checkmark = (props: CheckmarkProps) => {
+export const Checkmark = (_props: CheckmarkProps) => {
const theme = useTheme();
return (
- // eslint-disable-next-line twenty/no-spread-props
-
+
);
diff --git a/front/src/modules/ui/color-scheme/components/ColorSchemeCard.tsx b/front/src/modules/ui/color-scheme/components/ColorSchemeCard.tsx
index 9166a78d1..da2280b97 100644
--- a/front/src/modules/ui/color-scheme/components/ColorSchemeCard.tsx
+++ b/front/src/modules/ui/color-scheme/components/ColorSchemeCard.tsx
@@ -103,10 +103,14 @@ export type ColorSchemeSegmentProps = {
const ColorSchemeSegment = ({
variant,
controls,
- ...rest
+ style,
+ onClick,
+ onMouseEnter,
+ onMouseLeave,
}: ColorSchemeSegmentProps) => (
- // eslint-disable-next-line twenty/no-spread-props
-
+
Aa
@@ -148,7 +152,7 @@ const checkmarkAnimationVariants = {
export const ColorSchemeCard = ({
variant,
selected,
- ...rest
+ onClick,
}: ColorSchemeCardProps) => {
const controls = useAnimation();
@@ -174,8 +178,7 @@ export const ColorSchemeCard = ({
{selected && (
diff --git a/front/src/modules/ui/data-table/components/DataTableHeaderPlusButton.tsx b/front/src/modules/ui/data-table/components/DataTableHeaderPlusButton.tsx
index fd090356d..49ff83d06 100644
--- a/front/src/modules/ui/data-table/components/DataTableHeaderPlusButton.tsx
+++ b/front/src/modules/ui/data-table/components/DataTableHeaderPlusButton.tsx
@@ -26,7 +26,6 @@ type DataTableHeaderPlusButtonProps = {
export const DataTableHeaderPlusButton = ({
onAddColumn,
onClickOutside = () => undefined,
- ...props
}: DataTableHeaderPlusButtonProps) => {
const ref = useRef(null);
@@ -51,8 +50,7 @@ export const DataTableHeaderPlusButton = ({
);
return (
- // eslint-disable-next-line twenty/no-spread-props
-
+
{hiddenTableColumns.map((column) => (