From 2f3c4d0271af18104f197ed71829890e6b7621bd Mon Sep 17 00:00:00 2001 From: urjimyu <92876819+urjimyu@users.noreply.github.com> Date: Thu, 29 Feb 2024 21:50:05 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EB=B9=8C=EB=93=9C=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/GiftHome/Price/GiftHomePriceTag.tsx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/components/common/GiftHome/Price/GiftHomePriceTag.tsx b/src/components/common/GiftHome/Price/GiftHomePriceTag.tsx index 2bbf52d9..9f96f0b4 100644 --- a/src/components/common/GiftHome/Price/GiftHomePriceTag.tsx +++ b/src/components/common/GiftHome/Price/GiftHomePriceTag.tsx @@ -1,4 +1,3 @@ -import PropTypes from 'prop-types'; import { Price } from './GiftHomePriceTag.style'; interface PriceTagProps { @@ -8,12 +7,7 @@ interface PriceTagProps { gap: number; } -const GiftHomePriceTag: React.FC = ({ - price, - fonts, - colors, - gap, -}: PriceTagProps) => { +const GiftHomePriceTag = ({ price, fonts, colors, gap }: PriceTagProps) => { const formatPrice = (price: number) => { return price.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); }; @@ -26,8 +20,4 @@ const GiftHomePriceTag: React.FC = ({ ); }; -GiftHomePriceTag.propTypes = { - price: PropTypes.number.isRequired, -}; - export default GiftHomePriceTag;