diff --git a/src/pages/TelemetryView/ModeDisplay.jsx b/src/pages/TelemetryView/ModeDisplay.jsx index df81db0..a3e020a 100644 --- a/src/pages/TelemetryView/ModeDisplay.jsx +++ b/src/pages/TelemetryView/ModeDisplay.jsx @@ -1,3 +1,5 @@ +import { Display } from '../../components/Display' + const modeNames = { 0: "Ручной", 1: "Бурение в роторе", @@ -11,17 +13,10 @@ const modeNames = { } export const ModeDisplay = ({data})=>{ - let value = '---' + const dataLast = data[data.length - 1] - if(data.length > 0){ - let lastFullData = data[data.length - 1] - let index = lastFullData['mode'] - if(index >= 0) - value = modeNames[index] ?? index - } - - return(
- Режим: - {value} -
) + return } \ No newline at end of file