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 PropTypes from 'prop-types' |
||||
import CurrencyIcon from 'components/CurrencyIcon' |
|
||||
import styles from './StepFour.scss' |
import styles from './StepFour.scss' |
||||
|
|
||||
class StepFour extends Component { |
const StepFour = ({ node_key, local_amt, push_amt }) => ( |
||||
render() { |
<div className={styles.container}> |
||||
const { node_key, local_amt, push_amt } = this.props |
<div className={styles.nodekey}> |
||||
|
<h4>Peer</h4> |
||||
|
<h2>{node_key}</h2> |
||||
|
</div> |
||||
|
|
||||
return ( |
<div className={styles.amounts}> |
||||
<div className={styles.container}> |
<div className={styles.localamt}> |
||||
<div className={styles.nodekey}> |
<h4>Local Amount</h4> |
||||
<h4>Peer</h4> |
<h3>{local_amt}</h3> |
||||
<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> |
</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 |
export default StepFour |
||||
|
@ -1,3 +1,3 @@ |
|||||
import ChannelForm from './ChannelForm' |
import ChannelForm from './ChannelForm' |
||||
|
|
||||
export default ChannelForm |
export default ChannelForm |
||||
|
@ -1,16 +1,15 @@ |
|||||
import React from 'react' |
import React from 'react' |
||||
import PropTypes from 'prop-types' |
import PropTypes from 'prop-types' |
||||
import { btc } from 'utils' |
|
||||
import styles from './CardChannel.scss' |
import styles from './CardChannel.scss' |
||||
|
|
||||
const CardChannel = ({ channel }) => ( |
const CardChannel = ({ channel }) => ( |
||||
<li className={styles.channel}> |
<li className={styles.channel}> |
||||
CardChannel |
{channel.chan_id} |
||||
</li> |
</li> |
||||
) |
) |
||||
|
|
||||
CardChannel.propTypes = { |
CardChannel.propTypes = { |
||||
|
channel: PropTypes.object.isRequired |
||||
} |
} |
||||
|
|
||||
export default CardChannel |
export default CardChannel |
||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue