2021-07-20 14:10:01 +05:00
|
|
|
import Deposit from './Deposit'
|
|
|
|
import Cluster from './Cluster'
|
|
|
|
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>
|
|
|
|
<Route path="/well/:id/">
|
|
|
|
<LayoutPortal>
|
|
|
|
<Well/>
|
|
|
|
</LayoutPortal>
|
|
|
|
</Route>
|
|
|
|
<Route path="/deposit">
|
|
|
|
<LayoutPortal>
|
|
|
|
<Deposit/>
|
|
|
|
</LayoutPortal>
|
|
|
|
</Route>
|
|
|
|
<Route path="/cluster/:id/">
|
|
|
|
<LayoutPortal>
|
|
|
|
<Cluster/>
|
|
|
|
</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
|
|
|
}
|