17 changed files with 123 additions and 91 deletions
@ -1,34 +1,37 @@ |
|||
import React, { Component } from 'react' |
|||
import React from 'react' |
|||
import PropTypes from 'prop-types' |
|||
import CurrencyIcon from 'components/CurrencyIcon' |
|||
import styles from './StepFour.scss' |
|||
|
|||
class StepFour extends Component { |
|||
render() { |
|||
const { node_key, local_amt, push_amt } = this.props |
|||
const StepFour = ({ node_key, local_amt, push_amt }) => ( |
|||
<div className={styles.container}> |
|||
<div className={styles.nodekey}> |
|||
<h4>Peer</h4> |
|||
<h2>{node_key}</h2> |
|||
</div> |
|||
|
|||
return ( |
|||
<div className={styles.container}> |
|||
<div className={styles.nodekey}> |
|||
<h4>Peer</h4> |
|||
<h2>{node_key}</h2> |
|||
</div> |
|||
|
|||
<div className={styles.amounts}> |
|||
<div className={styles.localamt}> |
|||
<h4>Local Amount</h4> |
|||
<h3>{local_amt}</h3> |
|||
</div> |
|||
<div className={styles.pushamt}> |
|||
<h4>Push Amount</h4> |
|||
<h3>{push_amt}</h3> |
|||
</div> |
|||
</div> |
|||
<div className={styles.amounts}> |
|||
<div className={styles.localamt}> |
|||
<h4>Local Amount</h4> |
|||
<h3>{local_amt}</h3> |
|||
</div> |
|||
) |
|||
} |
|||
} |
|||
<div className={styles.pushamt}> |
|||
<h4>Push Amount</h4> |
|||
<h3>{push_amt}</h3> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
) |
|||
|
|||
StepFour.propTypes = {} |
|||
StepFour.propTypes = { |
|||
node_key: PropTypes.string.isRequired, |
|||
local_amt: PropTypes.oneOfType([ |
|||
PropTypes.number, |
|||
PropTypes.string |
|||
]), |
|||
push_amt: PropTypes.oneOfType([ |
|||
PropTypes.number, |
|||
PropTypes.string |
|||
]) |
|||
} |
|||
|
|||
export default StepFour |
|||
|
@ -1,3 +1,3 @@ |
|||
import ChannelForm from './ChannelForm' |
|||
|
|||
export default ChannelForm |
|||
export default ChannelForm |
|||
|
@ -1,16 +1,15 @@ |
|||
import React from 'react' |
|||
import PropTypes from 'prop-types' |
|||
import { btc } from 'utils' |
|||
import styles from './CardChannel.scss' |
|||
|
|||
const CardChannel = ({ channel }) => ( |
|||
<li className={styles.channel}> |
|||
CardChannel |
|||
{channel.chan_id} |
|||
</li> |
|||
) |
|||
|
|||
CardChannel.propTypes = { |
|||
|
|||
channel: PropTypes.object.isRequired |
|||
} |
|||
|
|||
export default CardChannel |
|||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue