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