import React, { Component } from 'react' import PropTypes from 'prop-types' import { MdSearch } from 'react-icons/lib/md' import PeerForm from 'components/Peers/PeerForm' import Peer from 'components/Peers/Peer' import styles from './Peers.scss' class Peers extends Component { componentWillMount() { this.props.fetchPeers() } render() { const { peerFormProps, setPeerForm, setPeer, peers: { peers } } = this.props console.log('props: ', this.props) return (
console.log('event: ', event)} className={`${styles.text} ${styles.input}`} placeholder='Search peers by their node public key' type='text' id='peersSearch' />
setPeerForm({ isOpen: true })}> Add new peer
{ peers.map(peer => { console.log('peer: ', peer) return () }) }
) } } Peers.propTypes = { } export default Peers