2021-05-25 12:02:39 +05:00
|
|
|
import { Layout, } from 'antd'
|
2021-04-02 17:22:34 +05:00
|
|
|
import Wells from './Wells'
|
2021-05-12 17:53:35 +05:00
|
|
|
import PageHeader from './Header'
|
2021-05-25 12:02:39 +05:00
|
|
|
import TelemetryView from "./TelemetryView";
|
|
|
|
import Well from "../components/Well";
|
|
|
|
import {Redirect, Route, Switch} from "react-router-dom";
|
2021-04-02 17:22:34 +05:00
|
|
|
|
2021-05-25 12:02:39 +05:00
|
|
|
const { Content } = Layout
|
2021-04-02 17:22:34 +05:00
|
|
|
|
|
|
|
export default function Main(){
|
|
|
|
|
|
|
|
return(
|
2021-05-25 12:02:39 +05:00
|
|
|
<Content>
|
2021-05-12 17:53:35 +05:00
|
|
|
<PageHeader />
|
2021-04-02 17:22:34 +05:00
|
|
|
<Layout>
|
2021-05-25 12:02:39 +05:00
|
|
|
<Content className="site-layout-background sheet">
|
|
|
|
<Switch>
|
|
|
|
<Route path="/well/:id/">
|
|
|
|
<Well/>
|
|
|
|
</Route>
|
|
|
|
<Route path="/well">
|
|
|
|
<Wells/>
|
|
|
|
</Route>
|
|
|
|
<Route path="/">
|
|
|
|
<Redirect to={{pathname: `/well`}}/>
|
|
|
|
</Route>
|
|
|
|
</Switch>
|
2021-04-02 17:22:34 +05:00
|
|
|
</Content>
|
|
|
|
</Layout>
|
2021-05-25 12:02:39 +05:00
|
|
|
</Content>
|
2021-04-02 17:22:34 +05:00
|
|
|
);
|
|
|
|
}
|