mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Enforce semicolons in eslint
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
1 parent
0f3f5611ba
commit
1477bb8274
531 files changed
+3979
-3975
No files matched your search
@@ -1,2 +1,2 @@
|
||||
export * from "./storage.route"
|
||||
export * from "./storage"
|
||||
export * from "./storage.route";
|
||||
export * from "./storage";
|
||||
@@ -1,12 +1,12 @@
|
||||
import { RouteProps } from "react-router"
|
||||
import { RouteProps } from "react-router";
|
||||
import { volumeClaimsURL } from "../+storage-volume-claims";
|
||||
import { Storage } from "./storage";
|
||||
import { IURLParams } from "../../../common/utils/buildUrl";
|
||||
|
||||
export const storageRoute: RouteProps = {
|
||||
get path() {
|
||||
return Storage.tabRoutes.map(({ routePath }) => routePath).flat()
|
||||
return Storage.tabRoutes.map(({ routePath }) => routePath).flat();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const storageURL = (params?: IURLParams) => volumeClaimsURL(params);
|
||||
@@ -1,4 +1,4 @@
|
||||
import "./storage.scss"
|
||||
import "./storage.scss";
|
||||
|
||||
import React from "react";
|
||||
import { observer } from "mobx-react";
|
||||
@@ -14,14 +14,14 @@ import { isAllowedResource } from "../../../common/rbac";
|
||||
export class Storage extends React.Component {
|
||||
static get tabRoutes() {
|
||||
const tabRoutes: TabLayoutRoute[] = [];
|
||||
const query = namespaceStore.getContextParams()
|
||||
const query = namespaceStore.getContextParams();
|
||||
|
||||
tabRoutes.push({
|
||||
title: <Trans>Persistent Volume Claims</Trans>,
|
||||
component: PersistentVolumeClaims,
|
||||
url: volumeClaimsURL({ query }),
|
||||
routePath: volumeClaimsRoute.path.toString(),
|
||||
})
|
||||
});
|
||||
|
||||
if (isAllowedResource('persistentvolumes')) {
|
||||
tabRoutes.push({
|
||||
@@ -38,7 +38,7 @@ export class Storage extends React.Component {
|
||||
component: StorageClasses,
|
||||
url: storageClassesURL(),
|
||||
routePath: storageClassesRoute.path.toString(),
|
||||
})
|
||||
});
|
||||
}
|
||||
return tabRoutes;
|
||||
}
|
||||
@@ -46,6 +46,6 @@ export class Storage extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<TabLayout className="Storage" tabs={Storage.tabRoutes}/>
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user