Skip to content

The open alternative to Salesforce, designed for AI.

refactor: remove useless ClickableCell props

Sammy Teillet8d321013f3ae
diff --git a/front/src/components/table/ClickableCell.tsx b/front/src/components/table/ClickableCell.tsx
index eddcbc17281..a1ecb43af1c 100644
--- a/front/src/components/table/ClickableCell.tsx
+++ b/front/src/components/table/ClickableCell.tsx
@@ -2,8 +2,6 @@ import * as React from 'react';
import { Link } from 'react-router-dom';
type OwnProps = {
- name: string;
- picture?: string;
href: string;
children?: React.ReactNode;
};
diff --git a/front/src/pages/people/People.tsx b/front/src/pages/people/People.tsx
index cd90d7791b9..b62b2008e2f 100644
--- a/front/src/pages/people/People.tsx
+++ b/front/src/pages/people/People.tsx
@@ -113,11 +113,7 @@ const columns = [
id={`person-selected-${props.row.original.email}`}
name={`person-selected${props.row.original.email}`}
/>
- <ClickableCell
- name={props.row.original.fullName}
- picture={props.row.original.picture}
- href="#"
- >
+ <ClickableCell href="#">
<CompanyChip
name={props.row.original.fullName}
picture={props.row.original.picture}
@@ -137,11 +133,7 @@ const columns = [
columnHelper.accessor('company', {
header: () => <ColumnHead viewName="Company" viewIcon={faBuildings} />,
cell: (props) => (
- <ClickableCell
- name={props.row.original.fullName}
- picture={props.row.original.picture}
- href="#"
- >
+ <ClickableCell href="#">
<CompanyChip
name={props.row.original.company.name}
picture={`https://www.google.com/s2/favicons?domain=${props.row.original.company.domain}&sz=256`}
@@ -177,11 +169,7 @@ const columns = [
columnHelper.accessor('pipe', {
header: () => <ColumnHead viewName="Pipe" viewIcon={faRectangleList} />,
cell: (props) => (
- <ClickableCell
- name={props.row.original.fullName}
- picture={props.row.original.picture}
- href="#"
- >
+ <ClickableCell href="#">
<CompanyChip
name={props.row.original.pipe.name}
picture={props.row.original.pipe.icon}