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;