Skip to content

Commit

Permalink
Revert "feat(components): Add new prop to handle show icon or not (no…
Browse files Browse the repository at this point in the history
…Icon prop: boolean) on TotalLayoutHeader."

This reverts commit 2aa31e4.
  • Loading branch information
fermarinsanchez committed Oct 23, 2024
1 parent 2aa31e4 commit f05ff9b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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;
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const TotalLayoutHeader = ({
cancelable = true,
mainActionLabel = 'Cancelar',
rightZone = null,
noIcon = false,
...props
}) => {
const formContext = useFormContext();
Expand All @@ -51,7 +50,7 @@ const TotalLayoutHeader = ({
{/* ICON & LABELS */}
<Stack alignItems="center">
<Stack>
{!noIcon && <Box className={classes.iconContainer}>{icon}</Box>}
<Box className={classes.iconContainer}>{icon}</Box>
<Stack
spacing={compact ? 2 : 0}
justifyContent="center"
Expand Down

0 comments on commit f05ff9b

Please sign in to comment.