2018-11-05 06:49:08 +01:00
|
|
|
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"
|
2018-10-25 15:51:47 +02:00
|
|
|
|
2018-11-03 13:23:22 +01:00
|
|
|
class Dashboard extends React.PureComponent {
|
2018-11-05 06:49:08 +01:00
|
|
|
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 (
|
|
|
|
<section className = "dashboard">
|
|
|
|
<h1>Welcome</h1>
|
|
|
|
|
|
|
|
{ this.state.stats &&
|
|
|
|
<div className="stats">
|
|
|
|
<Row>
|
|
|
|
<Col span={ 12 }>
|
|
|
|
<h1></h1>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
</section>
|
|
|
|
);
|
|
|
|
}
|
2018-10-25 15:51:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export default Dashboard;
|