From 73624adc2cd0acf4d825c8586c2399852ef94264 Mon Sep 17 00:00:00 2001 From: anasElhaddad <anas.elhaddad@marketingconfort.com> Date: Tue, 13 May 2025 09:30:55 +0000 Subject: [PATCH] add ConditionalComponent --- src/shared/sections/cart/all-Orders/Order-table-row.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/shared/sections/cart/all-Orders/Order-table-row.tsx b/src/shared/sections/cart/all-Orders/Order-table-row.tsx index 2ab23f9e..bed6f533 100644 --- a/src/shared/sections/cart/all-Orders/Order-table-row.tsx +++ b/src/shared/sections/cart/all-Orders/Order-table-row.tsx @@ -190,9 +190,7 @@ export default function OrderTableRow({ row, selected }: Props) { </ConditionalComponent> <ConditionalComponent - isValid={row.statutPanier === 'DELETED_SITE' || row.statutPanier === 'DELETED_BO'} - defaultComponent={null} - > + isValid={row.statutPanier === 'DELETED_SITE' || row.statutPanier === 'DELETED_BO'}> <Tooltip title="Restaurer" placement="top" arrow> <IconButton sx={{ color: "#ff9800" }} onClick={handleRestore}> <RestoreFromTrashIcon /> -- GitLab