...
The solution should be reusable and flexible
We need to ensure that the existent unit tests will not be affected by the changes (available at
frontend/src/pages/cart/cart-promo-codes/__tests__
)
Task 2: Adjust use-redeem-promo-code-checkout.ts hook to return necessary information for the extended modal
Files to be changed:
frontend/src/pages/cart/cart-promo-codes/cart-promo-codes.tsx
frontend/src/state/loyalty/hooks/use-redeem-promo-code-checkout.ts
...