From fa45a27a4ca25696275d0b47c5aff653ad93108e Mon Sep 17 00:00:00 2001 From: Alexey Date: Tue, 25 May 2021 13:55:25 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20=D0=B2=D1=81?= =?UTF-8?q?=D1=91=20=D0=BB=D0=B8=D1=88=D0=BD=D0=B5=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Well.jsx | 1 - src/pages/Main.jsx | 1 - src/pages/Messages.jsx | 21 --------------------- 3 files changed, 23 deletions(-) diff --git a/src/components/Well.jsx b/src/components/Well.jsx index 47fd695..918465d 100644 --- a/src/components/Well.jsx +++ b/src/components/Well.jsx @@ -7,7 +7,6 @@ import Messages from "../pages/Messages"; import Report from "../pages/Report"; import Analysis from "../pages/Analysis"; import TelemetryView from "../pages/TelemetryView"; -import Wells from "../pages/Wells"; const { Content } = Layout diff --git a/src/pages/Main.jsx b/src/pages/Main.jsx index ddf6f79..6761330 100644 --- a/src/pages/Main.jsx +++ b/src/pages/Main.jsx @@ -1,7 +1,6 @@ import { Layout, } from 'antd' import Wells from './Wells' import PageHeader from './Header' -import TelemetryView from "./TelemetryView"; import Well from "../components/Well"; import {Redirect, Route, Switch} from "react-router-dom"; diff --git a/src/pages/Messages.jsx b/src/pages/Messages.jsx index 1589b72..b58da10 100644 --- a/src/pages/Messages.jsx +++ b/src/pages/Messages.jsx @@ -53,12 +53,6 @@ export default function Messages(props) { const [messages, setMessages] = useState([]) const [loader] = useState(false) - // const handleMessages = (messages) => { - // if (messages) { - // messages.map(m => { return { key: m.id, ...m } }) - // } - // } - const handleReceiveMessages = (messages) => { if (messages) { setMessages(messages.items) @@ -75,21 +69,6 @@ export default function Messages(props) { } }, [id]); - // let updateMessagesTable = async () => { - // setLoader(true) - // try { - // let newMessages = await MessageService.getMessage(1, 0, 32, [], '2020-01-01T00:00:00', '2025-01-01T00:00:00') - // setMessages(newMessages.items) - // } catch (e) { - // console.error(`${e.message}`); - // } - // setLoader(false) - // } - - // useEffect(() => { - // updateMessagesTable() - // }, []) - return ( <>

Сообщения