From a69df2392dd9135c32e1f61b9c95ad261d666258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Loi=CC=88c=20Correnson?= <loic.correnson@cea.fr> Date: Mon, 4 Dec 2023 14:56:14 +0100 Subject: [PATCH] [ivette/sandbox] fix icon gallery items --- ivette/src/sandbox/icons.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ivette/src/sandbox/icons.tsx b/ivette/src/sandbox/icons.tsx index a3d4335767f..1c8f3b23a45 100644 --- a/ivette/src/sandbox/icons.tsx +++ b/ivette/src/sandbox/icons.tsx @@ -45,12 +45,8 @@ function Gallery(): JSX.Element { icons = []; gallery.set(section, icons); } - icons.push( - <> - <Code icon={id} label={id} /> - <Label>{title}</Label> - </> - ); + icons.push(<Code key={'C'+id} icon={id} label={id} />); + icons.push(<Label key={'L'+id} label={title} />); }); const sections : JSX.Element[] = []; gallery.forEach((icons, section) => { -- GitLab