-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpayments.jsx
More file actions
35 lines (27 loc) · 819 Bytes
/
payments.jsx
File metadata and controls
35 lines (27 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* @flow */
import React, { Element } from 'react';
import ContentBox from 'components/core/content-box';
import PanelHeader from 'components/panel-header/panel-header';
import PaymentsPanel from 'components/payments-panel/payments-panel';
import OrderParagon from 'paragons/order';
type Props = {
details: {
order: OrderParagon,
},
};
export default class Payments extends React.Component {
props: Props;
render() {
const { order } = this.props.details;
const { paymentMethods } = order;
const title = <PanelHeader showStatus={false} text="Payment Method" />;
return (
<ContentBox
className="fc-order-payment"
title={title}
indentContent={false}>
<PaymentsPanel order={order} paymentMethods={paymentMethods} />
</ContentBox>
);
}
}