mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-01 00:28:06 +01:00
53 lines
1.2 KiB
JavaScript
53 lines
1.2 KiB
JavaScript
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
import classnames from 'classnames'
|
|
|
|
const ConfirmDetailRow = props => {
|
|
const {
|
|
label,
|
|
fiatFee,
|
|
ethFee,
|
|
onHeaderClick,
|
|
fiatFeeColor,
|
|
headerText,
|
|
headerTextClassName,
|
|
} = props
|
|
|
|
return (
|
|
<div className="confirm-detail-row">
|
|
<div className="confirm-detail-row__label">
|
|
{ label }
|
|
</div>
|
|
<div className="confirm-detail-row__details">
|
|
<div
|
|
className={classnames('confirm-detail-row__header-text', headerTextClassName)}
|
|
onClick={() => onHeaderClick && onHeaderClick()}
|
|
>
|
|
{ headerText }
|
|
</div>
|
|
<div
|
|
className="confirm-detail-row__fiat"
|
|
style={{ color: fiatFeeColor }}
|
|
>
|
|
{ fiatFee }
|
|
</div>
|
|
<div className="confirm-detail-row__eth">
|
|
{ `\u2666 ${ethFee}` }
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
ConfirmDetailRow.propTypes = {
|
|
label: PropTypes.string,
|
|
fiatFee: PropTypes.string,
|
|
ethFee: PropTypes.string,
|
|
fiatFeeColor: PropTypes.string,
|
|
onHeaderClick: PropTypes.func,
|
|
headerText: PropTypes.string,
|
|
headerTextClassName: PropTypes.string,
|
|
}
|
|
|
|
export default ConfirmDetailRow
|