2021-07-20 14:10:01 +05:00
|
|
|
import Deposit from './Deposit'
|
2021-08-24 16:32:32 +05:00
|
|
|
import ClusterInfo from './ClusterInfo'
|
2021-07-20 14:10:01 +05:00
|
|
|
import Well from "./Well";
|
2021-07-22 11:43:58 +05:00
|
|
|
import LayoutPortal from '../components/LayoutPortal'
|
2021-05-25 12:02:39 +05:00
|
|
|
import {Redirect, Route, Switch} from "react-router-dom";
|
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-07-20 14:10:01 +05:00
|
|
|
return (
|
|
|
|
<Switch>
|
2021-08-13 11:37:54 +05:00
|
|
|
<Route path="/well/:idWell/">
|
2021-07-20 14:10:01 +05:00
|
|
|
<LayoutPortal>
|
|
|
|
<Well/>
|
|
|
|
</LayoutPortal>
|
|
|
|
</Route>
|
|
|
|
<Route path="/deposit">
|
2021-07-22 12:06:27 +05:00
|
|
|
<LayoutPortal noSheet>
|
2021-07-20 14:10:01 +05:00
|
|
|
<Deposit/>
|
|
|
|
</LayoutPortal>
|
|
|
|
</Route>
|
2021-08-24 16:32:32 +05:00
|
|
|
<Route path="/cluster/:id/:tab">
|
2021-07-20 14:10:01 +05:00
|
|
|
<LayoutPortal>
|
2021-08-24 16:32:32 +05:00
|
|
|
<ClusterInfo />
|
2021-07-20 14:10:01 +05:00
|
|
|
</LayoutPortal>
|
|
|
|
</Route>
|
|
|
|
<Route path="/">
|
|
|
|
<Redirect to={{pathname: `/deposit`}}/>
|
|
|
|
</Route>
|
|
|
|
</Switch>
|
2021-05-27 12:53:42 +05:00
|
|
|
)
|
2021-04-02 17:22:34 +05:00
|
|
|
}
|