import { Button, Col, Form, Icon, Input, Modal, notification, Popconfirm, Row, Select, Spin, Table, Tag, Tooltip } from "antd" import React from "react"; import * as cs from "./constants" class Dashboard extends React.PureComponent { state = { stats: null } componentDidMount = () => { this.props.pageTitle("Dashboard") this.props.request(cs.Routes.GetDashboarcStats, cs.MethodGet).then((resp) => { this.setState({ stats: resp.data.data }) }).catch(e => { notification["error"]({ message: "Error", description: e.message }) }) } render() { return (

Welcome

{ this.state.stats &&

}
); } } export default Dashboard;