Skip to content

Commit

Permalink
chore: 빌드 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
urjimyu committed Feb 29, 2024
1 parent 93be941 commit 2f3c4d0
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/components/common/GiftHome/Price/GiftHomePriceTag.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import PropTypes from 'prop-types';
import { Price } from './GiftHomePriceTag.style';

interface PriceTagProps {
Expand All @@ -8,12 +7,7 @@ interface PriceTagProps {
gap: number;
}

const GiftHomePriceTag: React.FC<PriceTagProps> = ({
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, ',');
};
Expand All @@ -26,8 +20,4 @@ const GiftHomePriceTag: React.FC<PriceTagProps> = ({
);
};

GiftHomePriceTag.propTypes = {
price: PropTypes.number.isRequired,
};

export default GiftHomePriceTag;

0 comments on commit 2f3c4d0

Please sign in to comment.