You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
640 B
23 lines
640 B
4 years ago
|
import React, { PureComponent } from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
|
import classnames from 'classnames';
|
||
6 years ago
|
|
||
|
export default class TransactionBreakdownRow extends PureComponent {
|
||
|
static propTypes = {
|
||
|
title: PropTypes.string,
|
||
|
children: PropTypes.node,
|
||
|
className: PropTypes.string,
|
||
4 years ago
|
};
|
||
6 years ago
|
|
||
4 years ago
|
render() {
|
||
4 years ago
|
const { title, children, className } = this.props;
|
||
6 years ago
|
|
||
|
return (
|
||
|
<div className={classnames('transaction-breakdown-row', className)}>
|
||
4 years ago
|
<div className="transaction-breakdown-row__title">{title}</div>
|
||
|
<div className="transaction-breakdown-row__value">{children}</div>
|
||
6 years ago
|
</div>
|
||
4 years ago
|
);
|
||
6 years ago
|
}
|
||
|
}
|