From bfb2e764c2cf9b2d7c87dfca9957cf2c47a4d12d Mon Sep 17 00:00:00 2001 From: AlekseyManetov Date: Thu, 13 Feb 2025 18:31:13 +0100 Subject: [PATCH] fixed projectsDemo warnings --- app/src/demo/tables/editableTable/columns.tsx | 53 +++++++++++++------ uui/components/tables/DataTableRow.tsx | 4 +- 2 files changed, 39 insertions(+), 18 deletions(-) diff --git a/app/src/demo/tables/editableTable/columns.tsx b/app/src/demo/tables/editableTable/columns.tsx index 4dc8cf97b7..2b7b974531 100644 --- a/app/src/demo/tables/editableTable/columns.tsx +++ b/app/src/demo/tables/editableTable/columns.tsx @@ -30,6 +30,7 @@ export function getColumnsTableMode(columnsProps: ColumnsProps) { { ...props.rowLens.prop('name').toProps() } renderEditor={ (props) => } { ...props } + key={ props.key } /> ), }, @@ -44,19 +45,21 @@ export function getColumnsTableMode(columnsProps: ColumnsProps) { { ...props.rowLens.prop('estimate').toProps() } renderEditor={ (props) => ( { return ( ); } } /> ) } { ...props } + key={ props.key } /> ), }, @@ -68,17 +71,21 @@ export function getColumnsTableMode(columnsProps: ColumnsProps) { renderCell: (props) => ( ( ( ( ) } { ...props } + key={ props.key } /> ) } /> @@ -99,9 +107,7 @@ export function getColumnsTableMode(columnsProps: ColumnsProps) { const row = togglerProps.selection?.[0]; return ( ( ); } } - { ...editorProps } /> ) } { ...props } + key={ props.key } /> ), }, @@ -137,6 +143,7 @@ export function getColumnsTableMode(columnsProps: ColumnsProps) { /> ) } { ...props } + key={ props.key } /> ), @@ -164,6 +171,7 @@ export function getColumnsTableMode(columnsProps: ColumnsProps) { /> ) } { ...props } + key={ props.key } /> ), }, @@ -184,11 +192,13 @@ export function getColumnsTableMode(columnsProps: ColumnsProps) { renderRow={ (props) => ( ( ) } /> @@ -198,6 +208,7 @@ export function getColumnsTableMode(columnsProps: ColumnsProps) { /> ) } { ...props } + key={ props.key } /> ), }, @@ -208,7 +219,7 @@ export function getColumnsTableMode(columnsProps: ColumnsProps) { grow: 1, allowResizing: false, renderCell: (props) => ( -