// @flow import React, { Component } from 'react' import ReactSVG from 'react-svg' import { FaCircle } from 'react-icons/lib/fa' import styles from './Wallet.scss' class Wallet extends Component { componentWillMount() { const { fetchInfo, fetchPeers, fetchChannels } = this.props fetchInfo() fetchPeers() fetchChannels() } render() { const { info, peers: { peersLoading, peers }, channels: { channelsLoading, channels } } = this.props return (

{info.data.identity_pubkey}

Connected Peers

Channels

    { !channelsLoading && channels.length ? channels.map(channel => { console.log('channel: ', channel) return (
  • Remote Pubkey

    {channel.remote_pubkey}

    Channel Point

    {channel.channel_point}

    Capacity

    {channel.capacity}

    {channel.local_balance}

    Local

    {channel.remote_balance}

    Remote
  • ) }) : 'Loading...' }
) } } export default Wallet