-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpayment.jsx
More file actions
29 lines (26 loc) · 824 Bytes
/
payment.jsx
File metadata and controls
29 lines (26 loc) · 824 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
import _ from 'lodash';
import React from 'react';
import PropTypes from 'prop-types';
import TableView from '../table/tableview';
import ContentBox from 'components/core/content-box';
export default class RmaPayment extends React.Component {
render() {
return (
<ContentBox title="Payment" id="payment">
<TableView columns={this.props.tableColumns} data={{rows: _.compact([this.props.rma.payment])}} />
</ContentBox>
);
}
}
RmaPayment.propTypes = {
rma: PropTypes.object,
tableColumns: PropTypes.array
};
RmaPayment.defaultProps = {
tableColumns: [
{field: 'paymentMethod', text: 'Method', component: 'PaymentMethod'},
{field: 'amount', text: 'Amount', type: 'currency'},
{field: 'state', text: 'State'},
{field: 'createdAt', text: 'Date/Time', type: 'date'}
]
};