From 9b1b6f3c6e03d12b6290580f6ea70d88c9876939 Mon Sep 17 00:00:00 2001 From: "younghoon100.park" Date: Wed, 7 Feb 2024 17:31:00 +0900 Subject: [PATCH] =?UTF-8?q?[components]=20SectionTitle=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Detail Notes : 1. props 추가, itemCount --- .../src/components/SectionTitle/SectionTitle.jsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/com.twin.app.shoptime/src/components/SectionTitle/SectionTitle.jsx b/com.twin.app.shoptime/src/components/SectionTitle/SectionTitle.jsx index 994392a6..3f48cc5c 100644 --- a/com.twin.app.shoptime/src/components/SectionTitle/SectionTitle.jsx +++ b/com.twin.app.shoptime/src/components/SectionTitle/SectionTitle.jsx @@ -4,14 +4,19 @@ import classNames from "classnames"; import css from "./SectionTitle.module.less"; -export default memo(function SectionTitle({ className, title, ...rest }) { +export default memo(function SectionTitle({ + className, + itemCount, + title, + ...rest +}) { return (

- {title} + {itemCount ? <>{`${title + " (" + itemCount + ")"}`} : <>{title}}

); });