Last active
March 16, 2019 00:11
-
-
Save rwbrockhoff/0a48a0eb617c13eecea66e677e9f7876 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import classes from "./Dashboard.module.css"; | |
import LineGraph from "../../components/Dashboard/LineGraph"; | |
import chartIcon from "../../assets/chart-icon.svg"; | |
import { managerData, yearLabels } from "./mockData"; | |
export default class Dashboard extends Component { | |
state = { | |
data: managerData, | |
labels: yearLabels | |
} | |
render() { | |
const { data, labels } = this.state; | |
return ( | |
<div className={classes.container}> | |
<header> | |
<img src={chartIcon} alt="bar chart icon" /> | |
<h1>Sales Dashboard</h1> | |
</header> | |
<LineGraph | |
data={data} | |
labels={labels} /> | |
</div> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment