account view subscription table data fixed
This commit is contained in:
@@ -36,9 +36,12 @@ export default function AccountViewCom() {
|
||||
},
|
||||
staleTime: 0 //0 mins
|
||||
})
|
||||
const accountsViewData = data?.data?.products // ACCOUNT VIEW DATA
|
||||
const pagination = data?.data?.pagination
|
||||
console.log('DATA', data?.data)
|
||||
const accountsViewData = data?.data // ACCOUNT VIEW DATA
|
||||
const account_info = accountsViewData?.account
|
||||
const account_profile = accountsViewData?.account_profile
|
||||
const subscriptions = accountsViewData?.subscriptions
|
||||
const payments = accountsViewData?.payments
|
||||
// console.log('DATA', payments, subscriptions)
|
||||
|
||||
return (
|
||||
<div className='w-full flex flex-col gap-8'>
|
||||
@@ -53,10 +56,10 @@ export default function AccountViewCom() {
|
||||
<p className='text-red-500'>{error.message}</p>
|
||||
:
|
||||
<>
|
||||
<CustomerAccountView />
|
||||
<CustomerAccountView accountInfo={account_info} />
|
||||
<AccountProfileView />
|
||||
<CustomerSubscriptionsView />
|
||||
<CustomerPaymentsView />
|
||||
<CustomerSubscriptionsView subscriptions={subscriptions} memberUID={memberUID} />
|
||||
<CustomerPaymentsView payments={payments} />
|
||||
</>
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user