From 131b5bce815ba7ced0da7b2ce5a5e14be1c1f8b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Fri, 13 Aug 2021 10:31:53 +0500 Subject: [PATCH] group smbo --- .../modalWindows => pages/Smbo}/EquipmentDetails.jsx | 2 +- src/{components => pages/Smbo}/SmboPlate.jsx | 2 +- src/pages/{Smbo.jsx => Smbo/index.jsx} | 10 ++++------ 3 files changed, 6 insertions(+), 8 deletions(-) rename src/{components/modalWindows => pages/Smbo}/EquipmentDetails.jsx (95%) rename src/{components => pages/Smbo}/SmboPlate.jsx (98%) rename src/pages/{Smbo.jsx => Smbo/index.jsx} (98%) diff --git a/src/components/modalWindows/EquipmentDetails.jsx b/src/pages/Smbo/EquipmentDetails.jsx similarity index 95% rename from src/components/modalWindows/EquipmentDetails.jsx rename to src/pages/Smbo/EquipmentDetails.jsx index c0e7946..12a50fa 100644 --- a/src/components/modalWindows/EquipmentDetails.jsx +++ b/src/pages/Smbo/EquipmentDetails.jsx @@ -1,6 +1,6 @@ import {Row, Col} from 'antd' +import Documents from '../../components/Documents' import '../../styles/equipment_details.css' -import Documents from '../Documents' export default function EquipmentDetails({id, equipmentTimers, equipmentSensors}) { let stateOfEquipmentDetails = equipmentTimers.map(timer => { diff --git a/src/components/SmboPlate.jsx b/src/pages/Smbo/SmboPlate.jsx similarity index 98% rename from src/components/SmboPlate.jsx rename to src/pages/Smbo/SmboPlate.jsx index 15f01dd..08aec9f 100644 --- a/src/components/SmboPlate.jsx +++ b/src/pages/Smbo/SmboPlate.jsx @@ -1,5 +1,5 @@ import {Modal} from 'antd' -import '../styles/smbo.css' +import '../../styles/smbo.css' import {useState} from "react"; diff --git a/src/pages/Smbo.jsx b/src/pages/Smbo/index.jsx similarity index 98% rename from src/pages/Smbo.jsx rename to src/pages/Smbo/index.jsx index dd101f0..3e9d628 100644 --- a/src/pages/Smbo.jsx +++ b/src/pages/Smbo/index.jsx @@ -1,8 +1,6 @@ -import SmboPlate from '../components/SmboPlate' -import '../styles/smbo.css' -import EquipmentDetails from '../components/modalWindows/EquipmentDetails' -import ActiveMessagesOnline from "./TelemetryView/ActiveMessagesOnline" -// import RigPlan from "../images/smbo/RigPlan2.png" +import SmboPlate from './SmboPlate' +import EquipmentDetails from './EquipmentDetails' +import '../../styles/smbo.css' const platesData = [ { @@ -608,7 +606,7 @@ export default function Smbo() { {/* План*/} {/**/}
- + сообщения