|
@ -8,6 +8,7 @@ import plus from 'icons/plus.svg' |
|
|
import search from 'icons/search.svg' |
|
|
import search from 'icons/search.svg' |
|
|
|
|
|
|
|
|
import Value from 'components/Value' |
|
|
import Value from 'components/Value' |
|
|
|
|
|
import SuggestedNodes from './SuggestedNodes' |
|
|
|
|
|
|
|
|
import styles from './Network.scss' |
|
|
import styles from './Network.scss' |
|
|
|
|
|
|
|
@ -139,6 +140,13 @@ class Network extends Component { |
|
|
</header> |
|
|
</header> |
|
|
|
|
|
|
|
|
<div className={styles.channels}> |
|
|
<div className={styles.channels}> |
|
|
|
|
|
{ |
|
|
|
|
|
!loadingChannelPubkeys.length && !currentChannels.length && |
|
|
|
|
|
<SuggestedNodes /> |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
loadingChannelPubkeys.length > 0 && currentChannels.length > 0 && |
|
|
<header className={styles.listHeader}> |
|
|
<header className={styles.listHeader}> |
|
|
<section> |
|
|
<section> |
|
|
<h2 onClick={toggleFilterPulldown} className={styles.filterTitle}> |
|
|
<h2 onClick={toggleFilterPulldown} className={styles.filterTitle}> |
|
@ -154,7 +162,6 @@ class Network extends Component { |
|
|
} |
|
|
} |
|
|
</ul> |
|
|
</ul> |
|
|
</section> |
|
|
</section> |
|
|
|
|
|
|
|
|
<section className={styles.refreshContainer}> |
|
|
<section className={styles.refreshContainer}> |
|
|
<span className={styles.refresh} onClick={refreshClicked} ref={(ref) => { this.repeat = ref }}> |
|
|
<span className={styles.refresh} onClick={refreshClicked} ref={(ref) => { this.repeat = ref }}> |
|
|
{ |
|
|
{ |
|
@ -166,10 +173,11 @@ class Network extends Component { |
|
|
</span> |
|
|
</span> |
|
|
</section> |
|
|
</section> |
|
|
</header> |
|
|
</header> |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
<ul className={filterPulldown && styles.fade}> |
|
|
<ul className={filterPulldown && styles.fade}> |
|
|
{ |
|
|
{ |
|
|
loadingChannelPubkeys.map((loadingPubkey) => { |
|
|
loadingChannelPubkeys.length > 0 && loadingChannelPubkeys.map((loadingPubkey) => { |
|
|
// TODO(jimmymow): refactor this out. same logic is in displayNodeName above
|
|
|
// TODO(jimmymow): refactor this out. same logic is in displayNodeName above
|
|
|
const node = find(nodes, n => loadingPubkey === n.pub_key) |
|
|
const node = find(nodes, n => loadingPubkey === n.pub_key) |
|
|
const nodeDisplay = () => { |
|
|
const nodeDisplay = () => { |
|
@ -264,7 +272,8 @@ class Network extends Component { |
|
|
} |
|
|
} |
|
|
</ul> |
|
|
</ul> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
{ |
|
|
|
|
|
loadingChannelPubkeys.length > 0 && currentChannels.length > 0 && |
|
|
<footer className={styles.search}> |
|
|
<footer className={styles.search}> |
|
|
<label htmlFor='search' className={`${styles.label} ${styles.input}`}> |
|
|
<label htmlFor='search' className={`${styles.label} ${styles.input}`}> |
|
|
<Isvg src={search} /> |
|
|
<Isvg src={search} /> |
|
@ -278,6 +287,7 @@ class Network extends Component { |
|
|
onChange={event => updateChannelSearchQuery(event.target.value)} |
|
|
onChange={event => updateChannelSearchQuery(event.target.value)} |
|
|
/> |
|
|
/> |
|
|
</footer> |
|
|
</footer> |
|
|
|
|
|
} |
|
|
</div> |
|
|
</div> |
|
|
) |
|
|
) |
|
|
} |
|
|
} |
|
|