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.

61 lines
1.5 KiB

import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { FaAlignJustify, FaThLarge } from 'react-icons/lib/fa'
import { MdSearch } from 'react-icons/lib/md'
import styles from './Channels.scss'
class Channels extends Component {
componentWillMount() {
this.props.fetchChannels()
}
render() {
const {
channels
} = this.props
return (
<div className={styles.container}>
<div className={styles.search}>
<label className={`${styles.label} ${styles.input}`} htmlFor='channelSearch'>
<MdSearch />
</label>
<input
value={''}
onChange={event => console.log('event: ', event)}
className={`${styles.text} ${styles.input}`}
placeholder='Search channels by funding transaction, channel id, remote public key, etc'
type='text'
id='channelSearch'
/>
</div>
<header className={styles.header}>
<div className={styles.layoutsContainer}>
<span className={styles.active}>
<FaAlignJustify />
</span>
<span>
<FaThLarge />
</span>
</div>
<div className={styles.createChannelContainer}>
<div className='buttonPrimary'>
Create new channel
</div>
</div>
</header>
<div className={styles.channels}>
channels
</div>
</div>
)
}
}
Channels.propTypes = {
}
export default Channels