refactor: remove useless ClickableCell props

This commit is contained in:
Sammy Teillet 2023-04-19 12:25:20 +02:00
parent 5962140656
commit 8d321013f3
No known key found for this signature in database
GPG Key ID: 687E513E74D28696
2 changed files with 3 additions and 17 deletions

View File

@ -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;
};

View File

@ -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}