You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
377 B
17 lines
377 B
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
import styles from './Peer.scss'
|
|
|
|
const Peer = ({ peer, setPeer }) => (
|
|
<li className={styles.peer} onClick={() => setPeer(peer)}>
|
|
<h4>{peer.address}</h4>
|
|
<h1>{peer.pub_key}</h1>
|
|
</li>
|
|
)
|
|
|
|
Peer.propTypes = {
|
|
peer: PropTypes.object.isRequired,
|
|
setPeer: PropTypes.func.isRequired
|
|
}
|
|
|
|
export default Peer
|
|
|