fixed payment switch btn
This commit was merged in pull request #72.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React from 'react'
|
||||
import React, { useState } from 'react'
|
||||
import BreadcrumbComBS from "../breadcrumb/BreadcrumbComBS";
|
||||
import getImage from "../../utils/getImage";
|
||||
import { getSubscriptions } from '../../services/services';
|
||||
@@ -15,6 +15,7 @@ export default function Subscribe() {
|
||||
const {state:{selectedSubscription}} = useLocation()
|
||||
|
||||
// console.log('selectedSubscription', selectedSubscription)
|
||||
let [activePaymentType, setActivePaymentType] = useState('previous')
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -27,10 +28,12 @@ export default function Subscribe() {
|
||||
<div className="pricing-content-card">
|
||||
<h5>Current Subscription(s)</h5>
|
||||
{/*<h2 className="text-primary pt-3">{currentSubscription?.display_name}</h2>*/}
|
||||
<SubcribePaymentOptions />
|
||||
|
||||
<SubcribePaymentOptions activePaymentType={activePaymentType} setActivePaymentType={setActivePaymentType} />
|
||||
{activePaymentType == 'new' ?
|
||||
<SubscribeNewCard />
|
||||
:
|
||||
<SubscribePreviousCard />
|
||||
}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user