// @flow import React from 'react'; import { WalletSummaryComponent } from '../components/wallet-summary'; type Props = { getSummary: () => void, total: number, shielded: number, transparent: number, error: string | null, isLoading: boolean, dollarValue: number, addresses: string[], }; export class DashboardView extends React.Component { componentDidMount() { this.props.getSummary(); } render() { if (this.props.error) { return this.props.error; } return (
{this.props.isLoading ? ( 'Loading' ) : ( )}
); } }