diff --git a/app/views/dashboard.js b/app/views/dashboard.js index eef6379..0daa280 100644 --- a/app/views/dashboard.js +++ b/app/views/dashboard.js @@ -2,4 +2,41 @@ import React from 'react'; -export const DashboardView = () =>
dashboard
; +import { WalletSummaryComponent } from '../components/wallet-summary'; + +type Props = { + getSummary: () => void, + total: number, + shielded: number, + transparent: number, + error: string | null, + isLoading: boolean, + dollarValue: number, +}; + +export class DashboardView extends React.Component { + componentDidMount() { + this.props.getSummary(); + } + + render() { + if (this.props.error) { + return this.props.error; + } + + return ( +
+ {this.props.isLoading ? ( + 'Loading' + ) : ( + + )} +
+ ); + } +}