diff --git a/new-lamassu-admin/src/components/machineActions/MachineActions.js b/new-lamassu-admin/src/components/machineActions/MachineActions.js index 815d8e90..06c1d6b1 100644 --- a/new-lamassu-admin/src/components/machineActions/MachineActions.js +++ b/new-lamassu-admin/src/components/machineActions/MachineActions.js @@ -5,6 +5,7 @@ import React, { memo, useState } from 'react' import { ConfirmDialog } from 'src/components/ConfirmDialog' import ActionButton from 'src/components/buttons/ActionButton' +import { H3 } from 'src/components/typography' import { ReactComponent as EditReversedIcon } from 'src/styling/icons/button/edit/white.svg' import { ReactComponent as EditIcon } from 'src/styling/icons/button/edit/zodiac.svg' import { ReactComponent as RebootReversedIcon } from 'src/styling/icons/button/reboot/white.svg' @@ -62,12 +63,6 @@ const getState = machineEventsLazy => JSON.parse(machineEventsLazy.machine.latestEvent?.note ?? '{"state": null}') .state -const Label = ({ children }) => { - const classes = useStyles() - - return
{data.model}
+{modelPrettifier[data.model]}
+
+ {data.responseTime + ? new BigNumber(data.responseTime).toFixed(3).toString() + ' ms' + : 'unavailable'} +
+{data.lastPing ? formatDistance(new Date(data.lastPing), new Date(), { addSuffix: true @@ -38,11 +46,9 @@ const Overview = ({ data, onActionSuccess }) => { : 'unknown'}
+
{data.downloadSpeed ? new BigNumber(data.downloadSpeed).toFixed(4).toString() + ' MB/s' @@ -50,22 +56,22 @@ const Overview = ({ data, onActionSuccess }) => {
+