import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { FaAlignJustify, FaGlobe, FaAngleDown } from 'react-icons/lib/fa'
import { MdSearch } from 'react-icons/lib/md'
import OpenPendingChannel from 'components/Channels/OpenPendingChannel'
import ClosedPendingChannel from 'components/Channels/ClosedPendingChannel'
import Channel from 'components/Channels/Channel'
import NetworkChannels from 'components/Channels/NetworkChannels'
import ChannelForm from 'components/ChannelForm'
import styles from './Channels.scss'
class Channels extends Component {
componentWillMount() {
const { fetchChannels, fetchPeers, fetchDescribeNetwork } = this.props
fetchChannels()
fetchPeers()
fetchDescribeNetwork()
}
render() {
const {
channels: {
searchQuery,
filterPulldown,
filter,
viewType
},
nonActiveFilters,
toggleFilterPulldown,
changeFilter,
allChannels,
currentChannels,
openChannels,
updateChannelSearchQuery,
setViewType,
openChannelForm,
ticker,
currentTicker,
channelFormProps,
network,
identity_pubkey,
setCurrentChannel
} = this.props
console.log('currentChannels: ',currentChannels)
return (
updateChannelSearchQuery(event.target.value)}
className={`${styles.text} ${styles.input}`}
placeholder='Search channels by funding transaction or remote public key'
type='text'
id='channelSearch'
/>