[SectionTitle] itemCount props 내부 코드 변경
This commit is contained in:
@@ -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>
|
||||
);
|
||||
});
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user