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.
35 lines
893 B
35 lines
893 B
import React, { PureComponent } from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import classnames from 'classnames';
|
|
|
|
export default class TransactionBreakdownRow extends PureComponent {
|
|
static propTypes = {
|
|
title: PropTypes.string,
|
|
children: PropTypes.node,
|
|
className: PropTypes.string,
|
|
};
|
|
|
|
render() {
|
|
const { title, children, className } = this.props;
|
|
|
|
return (
|
|
<div
|
|
className={classnames('transaction-breakdown-row', className)}
|
|
data-testid="transaction-breakdown-row"
|
|
>
|
|
<div
|
|
className="transaction-breakdown-row__title"
|
|
data-testid="transaction-breakdown-row-title"
|
|
>
|
|
{title}
|
|
</div>
|
|
<div
|
|
className="transaction-breakdown-row__value"
|
|
data-testid="transaction-breakdown-row-value"
|
|
>
|
|
{children}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|