From 430746bea11fc21caba06d19a20ae4746484b118 Mon Sep 17 00:00:00 2001 From: Kevin Qualters Date: Fri, 8 Mar 2024 13:45:29 -0800 Subject: [PATCH] EuiDataGrid cell memoizations/cleanup - remove more inline jsx vars - move fn utilities to bottom of file + wrap in `memo()` - get rid of `cellContentProps` obj, just use props --- .../body/cell/data_grid_cell.test.tsx | 44 +++- .../datagrid/body/cell/data_grid_cell.tsx | 243 ++++++++++-------- .../body/cell/data_grid_cell_actions.test.tsx | 69 ++--- .../body/cell/data_grid_cell_actions.tsx | 16 +- 4 files changed, 225 insertions(+), 147 deletions(-) diff --git a/src/components/datagrid/body/cell/data_grid_cell.test.tsx b/src/components/datagrid/body/cell/data_grid_cell.test.tsx index 2e02393b49cd..610c29e04825 100644 --- a/src/components/datagrid/body/cell/data_grid_cell.test.tsx +++ b/src/components/datagrid/body/cell/data_grid_cell.test.tsx @@ -111,7 +111,15 @@ describe('EuiDataGridCell', () => { EuiDataGridCell.prototype, 'shouldComponentUpdate' ); - component = mount(); + component = mount( +