CEC-4066 Undo change (#316)

This commit is contained in:
John Wu
2023-04-07 11:36:21 -07:00
committed by GitHub
parent 81a9673271
commit c83f4dde01

View File

@@ -28,10 +28,6 @@ const MainForm = ({ vin }) => {
const { setMessage } = useStatusContext(); const { setMessage } = useStatusContext();
const tableColumns = [ const tableColumns = [
{
id: "epoch_usec",
label: "Date",
},
{ {
id: "id", id: "id",
label: "Id", label: "Id",
@@ -52,6 +48,10 @@ const MainForm = ({ vin }) => {
id: "status_byte", id: "status_byte",
label: "Status Code", label: "Status Code",
}, },
{
id: "epoch_usec",
label: "Date",
},
]; ];
const handleSort = (_event, property) => { const handleSort = (_event, property) => {
@@ -189,7 +189,6 @@ const MainForm = ({ vin }) => {
<TableBody> <TableBody>
{(dtcData || []).map((dtc, index) => ( {(dtcData || []).map((dtc, index) => (
<TableRow key={index}> <TableRow key={index}>
<TableCell>{formatDate(dtc.epoch_usec)}</TableCell>
<TableCell component="th" scope="row"> <TableCell component="th" scope="row">
{dtc.id} {dtc.id}
</TableCell> </TableCell>
@@ -197,6 +196,7 @@ const MainForm = ({ vin }) => {
<TableCell>{dtc.ecu_name}</TableCell> <TableCell>{dtc.ecu_name}</TableCell>
<TableCell>{dtc.trouble_code}</TableCell> <TableCell>{dtc.trouble_code}</TableCell>
<TableCell>{dtc.status_byte}</TableCell> <TableCell>{dtc.status_byte}</TableCell>
<TableCell>{formatDate(dtc.epoch_usec)}</TableCell>
</TableRow> </TableRow>
))} ))}
</TableBody> </TableBody>