From f05ff9bd5f4ba5075324d489a25e5d239d4eb634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Mar=C3=ADn=20S=C3=A1nchez?= <46426271+fermarinsanchez@users.noreply.github.com> Date: Wed, 23 Oct 2024 16:19:41 +0200 Subject: [PATCH] Revert "feat(components): Add new prop to handle show icon or not (noIcon prop: boolean) on TotalLayoutHeader." This reverts commit 2aa31e431c10791e223dfece9d239091e310d8c9. --- .../TotalLayoutHeader/TotalLayoutHeader.constants.js | 2 -- .../layout/TotalLayout/TotalLayoutHeader/TotalLayoutHeader.js | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/components/src/layout/TotalLayout/TotalLayoutHeader/TotalLayoutHeader.constants.js b/packages/components/src/layout/TotalLayout/TotalLayoutHeader/TotalLayoutHeader.constants.js index 5bff9d90..402385a0 100644 --- a/packages/components/src/layout/TotalLayout/TotalLayoutHeader/TotalLayoutHeader.constants.js +++ b/packages/components/src/layout/TotalLayout/TotalLayoutHeader/TotalLayoutHeader.constants.js @@ -13,7 +13,6 @@ export const TOTAL_LAYOUT_HEADER_PROP_TYPES = { cancelable: PropTypes.bool, direction: PropTypes.oneOf(['row', 'column']), rightZone: PropTypes.node, - noIcon: PropTypes.bool, }; export const TOTAL_LAYOUT_HEADER_DEFAULT_PROPS = { @@ -25,7 +24,6 @@ export const TOTAL_LAYOUT_HEADER_DEFAULT_PROPS = { cancelable: true, direction: 'column', rightZone: null, - noIcon: false, }; export const TOTAL_LAYOUT_HEADER_HEIGHT = 72; diff --git a/packages/components/src/layout/TotalLayout/TotalLayoutHeader/TotalLayoutHeader.js b/packages/components/src/layout/TotalLayout/TotalLayoutHeader/TotalLayoutHeader.js index aa4f35d2..416226ce 100644 --- a/packages/components/src/layout/TotalLayout/TotalLayoutHeader/TotalLayoutHeader.js +++ b/packages/components/src/layout/TotalLayout/TotalLayoutHeader/TotalLayoutHeader.js @@ -25,7 +25,6 @@ const TotalLayoutHeader = ({ cancelable = true, mainActionLabel = 'Cancelar', rightZone = null, - noIcon = false, ...props }) => { const formContext = useFormContext(); @@ -51,7 +50,7 @@ const TotalLayoutHeader = ({ {/* ICON & LABELS */} - {!noIcon && {icon}} + {icon}