|
|
@@ -29,8 +29,6 @@ import LastRunStatusSelector from "./LastRunStatusSelector";
|
|
|
import loadable from "@loadable/component";
|
|
|
import Loading from "components/Loading";
|
|
|
import JobRunTable from "./chart/JobRunTable";
|
|
|
-import SwitchBase from "@material-ui/core/internal/SwitchBase";
|
|
|
-import Selector from "components/Selector";
|
|
|
import TabSelector from "components/TabSelector";
|
|
|
import TagFilter from "./TagFilter";
|
|
|
|
|
|
@@ -47,6 +45,14 @@ const LazyPreviewEnvironmentsRoutes = loadable(
|
|
|
}
|
|
|
);
|
|
|
|
|
|
+const LazyStackRoutes = loadable(
|
|
|
+ // @ts-ignore
|
|
|
+ () => import("./stacks/routes.tsx"),
|
|
|
+ {
|
|
|
+ fallback: <Loading />,
|
|
|
+ }
|
|
|
+);
|
|
|
+
|
|
|
type PropsType = RouteComponentProps &
|
|
|
WithAuthProps & {
|
|
|
currentCluster: ClusterType;
|
|
|
@@ -273,6 +279,9 @@ class ClusterDashboard extends Component<PropsType, StateType> {
|
|
|
let { setSidebar } = this.props;
|
|
|
return (
|
|
|
<Switch>
|
|
|
+ <Route path={"/stacks"}>
|
|
|
+ <LazyStackRoutes />
|
|
|
+ </Route>
|
|
|
<Route path={"/preview-environments"}>
|
|
|
<LazyPreviewEnvironmentsRoutes />
|
|
|
</Route>
|
|
|
@@ -499,4 +508,4 @@ const SortFilterWrapper = styled.div`
|
|
|
> div:not(:first-child) {
|
|
|
margin-left: 30px;
|
|
|
}
|
|
|
-`;
|
|
|
+`;
|