[SectionTitle] itemCount props 내부 코드 변경

This commit is contained in:
hyunwoo93.cha
2024-02-08 13:34:16 +09:00
parent 2aff000fdf
commit 55e61a40f2
2 changed files with 8 additions and 3 deletions

View File

@@ -15,8 +15,8 @@ export default memo(function SectionTitle({
className={classNames(className ? className : css.sectionTitle)}
{...rest}
>
<span />
{itemCount ? <>{`${title + " (" + itemCount + ")"}`}</> : <>{title}</>}
{title}
{itemCount && <span>({itemCount})</span>}
</h2>
);
});

View File

@@ -7,10 +7,15 @@
.font(@fontFamily: @baseFontBold, @fontSize: 42px);
color: @COLOR_GRAY08;
span {
&::before {
display: inline-block;
content: "";
.size(@w: 6px, @h: 36px);
margin-right: 12px;
background-color: @PRIMARY_COLOR_RED;
}
span {
margin-left: 10px;
}
}