Skip to content

Commit

Permalink
chore: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
JuroUhlar committed Jan 28, 2024
1 parent 6344206 commit 6aefd62
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/pages/coupon-fraud/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ export default function CouponFraudUseCase({ embed }: CustomPageProps) {
<div className={classNames(styles.wrapper, formStyles.wrapper)}>
<Cart items={cartItems} discount={discount} taxPerItem={TAXES}></Cart>
<div className={styles.innerWrapper}>
<form className={classNames(formStyles.useCaseForm, styles.couponFraudForm)}>
<form
onSubmit={(e) => {
e.preventDefault();
claimCoupon({ couponCode });
}}
className={classNames(formStyles.useCaseForm, styles.couponFraudForm)}
>
<p>Do you have a coupon? Apply to get a discount!</p>
<div className={styles.couponInputContainer}>
<input
Expand All @@ -96,15 +102,7 @@ export default function CouponFraudUseCase({ embed }: CustomPageProps) {
required
data-testid={TEST_IDS.couponFraud.couponCode}
/>
<Button
disabled={isLoading}
onClick={(e) => {
e.preventDefault();
claimCoupon({ couponCode });
}}
size="medium"
data-testid={TEST_IDS.couponFraud.submitCoupon}
>
<Button disabled={isLoading} size="medium" data-testid={TEST_IDS.couponFraud.submitCoupon}>
{isLoading ? 'Processing...' : 'Apply'}
</Button>
</div>
Expand Down

0 comments on commit 6aefd62

Please sign in to comment.