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 ( <>