refactor: remove useless ClickableCell props
This commit is contained in:
@ -2,8 +2,6 @@ import * as React from 'react';
|
|||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
|
|
||||||
type OwnProps = {
|
type OwnProps = {
|
||||||
name: string;
|
|
||||||
picture?: string;
|
|
||||||
href: string;
|
href: string;
|
||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -113,11 +113,7 @@ const columns = [
|
|||||||
id={`person-selected-${props.row.original.email}`}
|
id={`person-selected-${props.row.original.email}`}
|
||||||
name={`person-selected${props.row.original.email}`}
|
name={`person-selected${props.row.original.email}`}
|
||||||
/>
|
/>
|
||||||
<ClickableCell
|
<ClickableCell href="#">
|
||||||
name={props.row.original.fullName}
|
|
||||||
picture={props.row.original.picture}
|
|
||||||
href="#"
|
|
||||||
>
|
|
||||||
<CompanyChip
|
<CompanyChip
|
||||||
name={props.row.original.fullName}
|
name={props.row.original.fullName}
|
||||||
picture={props.row.original.picture}
|
picture={props.row.original.picture}
|
||||||
@ -137,11 +133,7 @@ const columns = [
|
|||||||
columnHelper.accessor('company', {
|
columnHelper.accessor('company', {
|
||||||
header: () => <ColumnHead viewName="Company" viewIcon={faBuildings} />,
|
header: () => <ColumnHead viewName="Company" viewIcon={faBuildings} />,
|
||||||
cell: (props) => (
|
cell: (props) => (
|
||||||
<ClickableCell
|
<ClickableCell href="#">
|
||||||
name={props.row.original.fullName}
|
|
||||||
picture={props.row.original.picture}
|
|
||||||
href="#"
|
|
||||||
>
|
|
||||||
<CompanyChip
|
<CompanyChip
|
||||||
name={props.row.original.company.name}
|
name={props.row.original.company.name}
|
||||||
picture={`https://www.google.com/s2/favicons?domain=${props.row.original.company.domain}&sz=256`}
|
picture={`https://www.google.com/s2/favicons?domain=${props.row.original.company.domain}&sz=256`}
|
||||||
@ -177,11 +169,7 @@ const columns = [
|
|||||||
columnHelper.accessor('pipe', {
|
columnHelper.accessor('pipe', {
|
||||||
header: () => <ColumnHead viewName="Pipe" viewIcon={faRectangleList} />,
|
header: () => <ColumnHead viewName="Pipe" viewIcon={faRectangleList} />,
|
||||||
cell: (props) => (
|
cell: (props) => (
|
||||||
<ClickableCell
|
<ClickableCell href="#">
|
||||||
name={props.row.original.fullName}
|
|
||||||
picture={props.row.original.picture}
|
|
||||||
href="#"
|
|
||||||
>
|
|
||||||
<CompanyChip
|
<CompanyChip
|
||||||
name={props.row.original.pipe.name}
|
name={props.row.original.pipe.name}
|
||||||
picture={props.row.original.pipe.icon}
|
picture={props.row.original.pipe.icon}
|
||||||
|
|||||||
Reference in New Issue
Block a user