import React, { Component } from 'react' import PropTypes from 'prop-types' import { MdSearch } from 'react-icons/lib/md' import Payments from './components/Payments' import Invoices from './components/Invoices' import styles from './Activity.scss' class Activity extends Component { constructor(props, context) { super(props, context) this.state = { tab: 1 } } componentWillMount() { const { fetchPayments, fetchInvoices } = this.props fetchPayments() fetchInvoices() } render() { const { tab } = this.state const { ticker, searchInvoices, invoices, invoice: { invoicesSearchText, invoice, invoiceLoading }, payment: { payment, payments, paymentLoading }, setPayment, setInvoice, paymentModalOpen, invoiceModalOpen, currentTicker } = this.props if (invoiceLoading || paymentLoading) { return