[SectionTitle] itemCount props 내부 코드 변경
This commit is contained in:
@@ -15,8 +15,8 @@ export default memo(function SectionTitle({
|
|||||||
className={classNames(className ? className : css.sectionTitle)}
|
className={classNames(className ? className : css.sectionTitle)}
|
||||||
{...rest}
|
{...rest}
|
||||||
>
|
>
|
||||||
<span />
|
{title}
|
||||||
{itemCount ? <>{`${title + " (" + itemCount + ")"}`}</> : <>{title}</>}
|
{itemCount && <span>({itemCount})</span>}
|
||||||
</h2>
|
</h2>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -7,10 +7,15 @@
|
|||||||
.font(@fontFamily: @baseFontBold, @fontSize: 42px);
|
.font(@fontFamily: @baseFontBold, @fontSize: 42px);
|
||||||
color: @COLOR_GRAY08;
|
color: @COLOR_GRAY08;
|
||||||
|
|
||||||
span {
|
&::before {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
content: "";
|
||||||
.size(@w: 6px, @h: 36px);
|
.size(@w: 6px, @h: 36px);
|
||||||
margin-right: 12px;
|
margin-right: 12px;
|
||||||
background-color: @PRIMARY_COLOR_RED;
|
background-color: @PRIMARY_COLOR_RED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user