|
@@ -2,17 +2,12 @@ import { useTranslation } from 'react-i18next'
|
|
|
import Collaborators from './collaborators'
|
|
import Collaborators from './collaborators'
|
|
|
import FeaturesList from './features-list'
|
|
import FeaturesList from './features-list'
|
|
|
import PriceSummary from './price-summary'
|
|
import PriceSummary from './price-summary'
|
|
|
-import TrialPrice from './trial-price'
|
|
|
|
|
-import NoDiscountPrice from './no-discount-price'
|
|
|
|
|
-import PriceForFirstXPeriod from './price-for-first-x-period'
|
|
|
|
|
|
|
+import TrialCouponSummary from './trial-coupon-summary'
|
|
|
import { usePaymentContext } from '../../../context/payment-context'
|
|
import { usePaymentContext } from '../../../context/payment-context'
|
|
|
|
|
|
|
|
function PaymentPreviewPanel() {
|
|
function PaymentPreviewPanel() {
|
|
|
const { t } = useTranslation()
|
|
const { t } = useTranslation()
|
|
|
const { plan, planName } = usePaymentContext()
|
|
const { plan, planName } = usePaymentContext()
|
|
|
- const trialPrice = <TrialPrice />
|
|
|
|
|
- const priceForFirstXPeriod = <PriceForFirstXPeriod />
|
|
|
|
|
- const noDiscountPrice = <NoDiscountPrice />
|
|
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<div className="price-feature-description">
|
|
<div className="price-feature-description">
|
|
@@ -24,16 +19,7 @@ function PaymentPreviewPanel() {
|
|
|
</>
|
|
</>
|
|
|
)}
|
|
)}
|
|
|
<PriceSummary />
|
|
<PriceSummary />
|
|
|
- {(trialPrice || priceForFirstXPeriod || noDiscountPrice) && (
|
|
|
|
|
- <>
|
|
|
|
|
- <hr className="thin" />
|
|
|
|
|
- <div className="trial-coupon-summary">
|
|
|
|
|
- {trialPrice}
|
|
|
|
|
- {priceForFirstXPeriod}
|
|
|
|
|
- {noDiscountPrice}
|
|
|
|
|
- </div>
|
|
|
|
|
- </>
|
|
|
|
|
- )}
|
|
|
|
|
|
|
+ <TrialCouponSummary />
|
|
|
<hr className="thin" />
|
|
<hr className="thin" />
|
|
|
<p className="price-cancel-anytime text-center">{t('cancel_anytime')}</p>
|
|
<p className="price-cancel-anytime text-center">{t('cancel_anytime')}</p>
|
|
|
</div>
|
|
</div>
|