asb_cloud_front/src/pages/Main.jsx

32 lines
763 B
React
Raw Normal View History

2021-07-20 14:10:01 +05:00
import Deposit from './Deposit'
import Cluster from './Cluster'
import Well from "./Well";
import LayoutPortal from '../components/LayoutPortal'
import {Redirect, Route, Switch} from "react-router-dom";
2021-04-02 17:22:34 +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">
2021-07-22 12:06:27 +05:00
<LayoutPortal noSheet>
2021-07-20 14:10:01 +05:00
<Deposit/>
</LayoutPortal>
</Route>
<Route path="/cluster/:id/">
<LayoutPortal>
<Cluster/>
</LayoutPortal>
</Route>
<Route path="/">
<Redirect to={{pathname: `/deposit`}}/>
</Route>
</Switch>
)
2021-04-02 17:22:34 +05:00
}