import React from "react"; import { Table, TableBody, TableCell, TableHead, TableRow, Typography } from "@material-ui/core"; import Box from "@material-ui/core/Box"; const MachineLog = () => { const history = [ { date: "2020-01-05", customerId: "11091700", amount: 3 }, { date: "2020-01-02", customerId: "Anonymous", amount: 1 } ]; return ( History Date Customer Amount Total price ($) {history.map(historyRow => ( {historyRow.date} {historyRow.customerId} {historyRow.amount} {Math.round(historyRow.amount * 5 * 100) / 100} ))}
); }; export default MachineLog;