Commit ad057b6a by Chaiwith Santaweesuk

update

parent ecdb062a
......@@ -162,13 +162,24 @@ class Home extends Component {
const { device, range, breakdown } = selectedFeed;
this.getFeedData(device, range, breakdown);
};
getMax(){
}
getMin(){
}
getAvg(){
}
getTotal(){
}
getLast(){
}
......@@ -197,7 +208,7 @@ class Home extends Component {
{/* {Data.map((item, index) => (
<DataCard key={index} item={item} feedData={feedData} />
))} */}
<DataCard item={Data[0]} feedData={currentFeed} total={}/>
<DataCard item={Data[0]} feedData={currentFeed} total={currentLast}/>
<DataCard item={Data[1]} feedData={revenueFeed} total={revenueTotal} max={revenueMax} min={revenueMin} avg={revenueAvg}/>
<DataCard item={Data[2]} feedData={peopleFeed} total={peopleTotal} max={peopleMax} min={peopleMin} avg={peopleAvg}/>
<DataCard item={Data[3]} feedData={remoteFeed} total={remoteTotal} max={remoteMax} min={remoteMin} avg={remoteAvg}/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment