diff --git a/src/app/[name]/(Dialogs)/order/checkout/[id]/components/CouponSection.tsx b/src/app/[name]/(Dialogs)/order/checkout/[id]/components/CouponSection.tsx index da70b13..d89ac9d 100644 --- a/src/app/[name]/(Dialogs)/order/checkout/[id]/components/CouponSection.tsx +++ b/src/app/[name]/(Dialogs)/order/checkout/[id]/components/CouponSection.tsx @@ -2,7 +2,7 @@ import InputField from '@/components/input/InputField'; import clsx from 'clsx'; -import { Cup, Icon, TickCircle, Ticket, Trash } from 'iconsax-react'; +import { TickCircle, Trash } from 'iconsax-react'; import { useTranslation } from 'react-i18next'; import { useApplyCoupon, useRemoveCoupon } from '../../hooks/useOrderData'; import Button from '@/components/button/PrimaryButton'; @@ -20,10 +20,8 @@ type CouponSectionProps = { }; export const CouponSection = ({ - couponType, couponCode, couponCodeError, - onCouponTypeChange, onCouponCodeChange, }: CouponSectionProps) => { @@ -32,10 +30,6 @@ export const CouponSection = ({ const { mutate: removeCoupon, isPending: isRemoving } = useRemoveCoupon(); const { data: cartItems } = useGetCartItems(); const [isApplied, setIsApplied] = useState(false); - const couponOptions: Array<{ id: string, label: string, icon: Icon }> = [ - { id: '0', label: t("SectionCoupon.InputCouponType.Options.Discount"), icon: Cup }, - { id: '1', label: t("SectionCoupon.InputCouponType.Options.GiftCard"), icon: Ticket }, - ]; const handleApplyCoupon = () => { applyCoupon(couponCode, { @@ -84,7 +78,7 @@ export const CouponSection = ({

{t("SectionCoupon.Title")}

- {couponOptions.map(({ id, label, icon: Icon }) => ( + {/* {couponOptions.map(({ id, label, icon: Icon }) => (
- ))} + ))} */}
{isApplied ? ( @@ -127,7 +121,7 @@ export const CouponSection = ({