From ac278edbf3c8936eb1834b1277a27b57a4a1aee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Tue, 10 Aug 2021 17:58:56 +0500 Subject: [PATCH] fix smbo worktime caption --- package.json | 2 +- src/components/SmboPlate.jsx | 2 +- src/pages/Smbo.jsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 0cbd60b..4fd94fe 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "react_test": "react-scripts test", "eject": "react-scripts eject" }, - "proxy": "http://192.168.1.70:5000", + "proxy": "http://192.168.1.58:5000", "eslintConfig": { "extends": [ "react-app", diff --git a/src/components/SmboPlate.jsx b/src/components/SmboPlate.jsx index 89643ae..ade2ec7 100644 --- a/src/components/SmboPlate.jsx +++ b/src/components/SmboPlate.jsx @@ -40,7 +40,7 @@ export default function SmboPlate({title, state, operatingTime, units, children,
{title}
-
наработка: {captionValue}
+
{captionValue??'наработка'} :
{operatingTime}
{units??'ч'}
diff --git a/src/pages/Smbo.jsx b/src/pages/Smbo.jsx index e6c91f3..120bd3e 100644 --- a/src/pages/Smbo.jsx +++ b/src/pages/Smbo.jsx @@ -28,7 +28,7 @@ const platesData = [ {label: 'Состояние ПЧ1', value: 1, unit: ''}, {label: 'Состояние ПЧ2', value: 1, unit: ''}, ], - captionValue: 'У-У-У-у-у-у', + //captionValue: 'У-У-У-у-у-у', custom: 'Я не понял про это', className: 'c1 r1' },