2021-08-27 14:21:48 +05:00
|
|
|
import { Redirect, Route, Switch } from "react-router-dom";
|
|
|
|
import Deposit from "./Deposit";
|
|
|
|
import Cluster from "./Cluster";
|
2021-07-20 14:10:01 +05:00
|
|
|
import Well from "./Well";
|
2021-10-19 14:50:32 +05:00
|
|
|
import {LayoutPortal} from "../components/LayoutPortal";
|
2021-04-02 17:22:34 +05:00
|
|
|
|
2021-05-27 12:53:42 +05:00
|
|
|
export default function Main() {
|
2021-08-27 14:21:48 +05:00
|
|
|
return (
|
|
|
|
<Switch>
|
|
|
|
<Route path="/deposit">
|
2021-09-15 12:03:03 +05:00
|
|
|
<LayoutPortal noSheet title='Месторождение'>
|
2021-08-27 14:21:48 +05:00
|
|
|
<Deposit />
|
|
|
|
</LayoutPortal>
|
|
|
|
</Route>
|
|
|
|
<Route path="/cluster/:idClaster/:tab?">
|
2021-09-15 12:03:03 +05:00
|
|
|
<LayoutPortal title="Анализ скважин куста">
|
2021-08-27 14:21:48 +05:00
|
|
|
<Cluster />
|
|
|
|
</LayoutPortal>
|
|
|
|
</Route>
|
|
|
|
<Route path="/well/:idWell/:tab?">
|
|
|
|
<LayoutPortal>
|
|
|
|
<Well />
|
|
|
|
</LayoutPortal>
|
|
|
|
</Route>
|
|
|
|
<Route path="/">
|
|
|
|
<Redirect to={{ pathname: `/deposit` }} />
|
|
|
|
</Route>
|
|
|
|
</Switch>
|
|
|
|
);
|
2021-04-02 17:22:34 +05:00
|
|
|
}
|