Closed fricoben closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
app-starknet-id | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 16, 2024 6:03pm |
sepolia-app-starknet-id | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 16, 2024 6:03pm |
The pull request introduces significant refactoring in the FreeRenewalCheckout
component, enhancing the handling of pricing and transaction calls for free renewals. It introduces a new custom hook, useFreeRenewalTxPrep
, to streamline transaction preparation by consolidating logic related to pricing and allowances. Additionally, minor adjustments are made in the Identity
class and the freeRenewalDiscount
object to improve code clarity and update the discount's expiry date.
File Path | Change Summary |
---|---|
components/discount/freeRenewalCheckout.tsx |
Refactored pricing logic; introduced useFreeRenewalTxPrep hook for transaction calls; replaced single potentialPrice with potentialPrices object for better currency handling; removed unused variables. |
hooks/checkout/useFreeRenewalTxPrep.tsx |
Added a custom hook to prepare transaction calls for free renewals, managing state and constructing calls based on various parameters. |
utils/apiWrappers/identity.ts |
Changed variable declarations in targetAddress from let to const for clarity. |
utils/discounts/freeRenewal.ts |
Updated expiry timestamp in freeRenewalDiscount object to a new date, altering the discount's validity period. |
FreeRenewalDiscount
regarding the handling of potentialPrice
and the introduction of getTotalYearlyPrice
, which relate to the refactoring of pricing logic in the main PR.FreeRegisterCheckout
to manage loading states and simplify coupon validation logic align with the changes made in the main PR to enhance user experience and streamline functionality.🔥 Ready for review
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Chores