Jack Mallers
7 years ago
7 changed files with 63 additions and 57 deletions
@ -0,0 +1,23 @@ |
|||
import React from 'react' |
|||
import PropTypes from 'prop-types' |
|||
import { btc } from 'utils' |
|||
|
|||
const Value = ({ value, currency, currentTicker }) => { |
|||
const renderValue = () => { |
|||
if (currency === 'btc') { |
|||
return btc.satoshisToBtc(value) |
|||
} |
|||
|
|||
return 'gang' |
|||
} |
|||
|
|||
return ( |
|||
<i>{renderValue()}</i> |
|||
) |
|||
} |
|||
|
|||
Value.propTypes = { |
|||
|
|||
} |
|||
|
|||
export default Value |
@ -0,0 +1,3 @@ |
|||
import Value from './Value' |
|||
|
|||
export default Value |
Loading…
Reference in new issue