|
|
|
|
@ -2,7 +2,7 @@ import { T9n } from 'features/T9n' |
|
|
|
|
|
|
|
|
|
import { isMobileDevice } from 'config/userAgent' |
|
|
|
|
|
|
|
|
|
import format from 'date-fns/format' |
|
|
|
|
import type { Payment } from 'requests/getUserListPayments' |
|
|
|
|
|
|
|
|
|
import { usePaymentHistory } from './hooks' |
|
|
|
|
|
|
|
|
|
@ -22,9 +22,7 @@ import { |
|
|
|
|
} from './styled' |
|
|
|
|
|
|
|
|
|
export const PagePaymentsHistory = () => { |
|
|
|
|
const { payments } = usePaymentHistory() |
|
|
|
|
|
|
|
|
|
const formattedDate = (date: string) => format(new Date(date), 'd MMM yyyy') |
|
|
|
|
const { formattedDate, payments } = usePaymentHistory() |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<Wrapper> |
|
|
|
|
@ -39,7 +37,7 @@ export const PagePaymentsHistory = () => { |
|
|
|
|
sub_name, |
|
|
|
|
sub_option, |
|
|
|
|
ts_payment, |
|
|
|
|
}: any) => ( |
|
|
|
|
}: Payment) => ( |
|
|
|
|
<ScPayment key={id}> |
|
|
|
|
<ScFirstBlock> |
|
|
|
|
<Th> |
|
|
|
|
@ -56,7 +54,9 @@ export const PagePaymentsHistory = () => { |
|
|
|
|
<ScSecondBlock> |
|
|
|
|
<Th className='subscription'> |
|
|
|
|
<T9n t='subscription_plan' /> |
|
|
|
|
<ScText>{sub_option} — {sub_name}</ScText> |
|
|
|
|
<ScText> |
|
|
|
|
{sub_option} — {sub_name} |
|
|
|
|
</ScText> |
|
|
|
|
</Th> |
|
|
|
|
<Th> |
|
|
|
|
<T9n t='payment_method' /> |
|
|
|
|
@ -95,7 +95,7 @@ export const PagePaymentsHistory = () => { |
|
|
|
|
sub_name, |
|
|
|
|
sub_option, |
|
|
|
|
ts_payment, |
|
|
|
|
}: any) => ( |
|
|
|
|
}: Payment) => ( |
|
|
|
|
<TRow key={id}> |
|
|
|
|
<Td className='subscription'> |
|
|
|
|
{sub_option} — {sub_name} |
|
|
|
|
|