Skip to content

Commit

Permalink
remove unnecessary class
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackySoul committed Nov 25, 2024
1 parent aaad314 commit dedb753
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@
.content {
padding-block: 2px 8px;
padding-inline: 6px;
}

.textAlignStart {
text-align: start;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const stylesSize = {
};

const textAlignClassNames = {
start: styles.textAlignStart,
center: styles.textAlignCenter,
end: styles.textAlignEnd,
};
Expand Down Expand Up @@ -121,7 +120,12 @@ export const HorizontalCell = ({
<Tappable className={styles.body} getRootRef={getRef} {...restProps}>
{hasReactNode(children) && <div className={styles.image}>{children}</div>}
{hasTypography && (
<div className={classNames(styles.content, textAlignClassNames[textAlign])}>
<div
className={classNames(
styles.content,
textAlign !== 'start' && textAlignClassNames[textAlign],
)}
>
{hasReactNode(title) && <CellTypography size={size}>{title}</CellTypography>}
{hasReactNode(subtitle) && <Footnote className={styles.subtitle}>{subtitle}</Footnote>}
{hasReactNode(extraSubtitle) && (
Expand Down

0 comments on commit dedb753

Please sign in to comment.