Убрал всё лишнее

This commit is contained in:
Alexey 2021-05-25 13:55:25 +05:00
parent da283f1818
commit fa45a27a4c
3 changed files with 0 additions and 23 deletions

View File

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

View File

@ -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";

View File

@ -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 (
<>
<h2>Сообщения</h2>