From 8d321013f3aec7ff1717b712aced1b96de5aee84 Mon Sep 17 00:00:00 2001 From: Sammy Teillet Date: Wed, 19 Apr 2023 12:25:20 +0200 Subject: [PATCH] refactor: remove useless ClickableCell props --- front/src/components/table/ClickableCell.tsx | 2 -- front/src/pages/people/People.tsx | 18 +++--------------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/front/src/components/table/ClickableCell.tsx b/front/src/components/table/ClickableCell.tsx index eddcbc1728..a1ecb43af1 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 cd90d7791b..b62b2008e2 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}`} /> - + , cell: (props) => ( - + , cell: (props) => ( - +