mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 11:01:41 +01:00
22 lines
492 B
JavaScript
22 lines
492 B
JavaScript
import React, { PureComponent } from 'react'
|
|
import PropTypes from 'prop-types'
|
|
import { hexToDecimal } from '../../helpers/conversions.util'
|
|
|
|
export default class HexToDecimal extends PureComponent {
|
|
static propTypes = {
|
|
className: PropTypes.string,
|
|
value: PropTypes.string,
|
|
}
|
|
|
|
render () {
|
|
const { className, value } = this.props
|
|
const decimalValue = hexToDecimal(value)
|
|
|
|
return (
|
|
<div className={className}>
|
|
{ decimalValue }
|
|
</div>
|
|
)
|
|
}
|
|
}
|