diff --git a/src/Components/Modals/PaymentModal.js b/src/Components/Modals/PaymentModal.js index 73626f2..2083758 100644 --- a/src/Components/Modals/PaymentModal.js +++ b/src/Components/Modals/PaymentModal.js @@ -31,6 +31,9 @@ const PaymentModal = ({ const additionalAccountsAnnualPriceToday = additionalAccountsMonthlyPriceToday * 12; + const extraAccountsPrice = isAnnual + ? additionalAccountsAnnualPriceToday + : additionalAccountsMonthlyPriceToday; const showAdditionaLAccountsView = (selectedPlan[0]?.value === "partner" && numberOfAccountsToAdd > 0) || (selectedPlan[0]?.value === "seniorPartner" && numberOfAccountsToAdd > 0); @@ -64,17 +67,20 @@ const PaymentModal = ({
-
Addiitonal accounts:
+
+ {numberOfAccountsToAdd} Addiitonal{" "} + {numberOfAccountsToAdd > 1 ? `accounts` : `account`} +
- {isAnnual - ? additionalAccountsAnnualPriceToday - : additionalAccountsMonthlyPriceToday} + {billingPeriod} - ${extraAccountsPrice}
Total today:
-
+
+ ${amountToday + extraAccountsPrice} +
{isAnnual ? (
@@ -86,21 +92,6 @@ const PaymentModal = ({ ) : ( <> )} - - {showAdditionaLAccountsView ? ( -
-
- Additional Accounts: -
-
- {isAnnual - ? additionalAccountsAnnualPriceToday - : additionalAccountsMonthlyPriceToday} -
-
- ) : ( - <> - )}
@@ -155,3 +146,23 @@ const PaymentModal = ({ }; export default PaymentModal; + +/* + + {showAdditionaLAccountsView ? ( +
+
+ Additional Accounts: +
+
+ {isAnnual + ? additionalAccountsAnnualPriceToday + : additionalAccountsMonthlyPriceToday} +
+
+ ) : ( + <> + )} + + + */