mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Enforce some naming conventions (#4813)
This commit is contained in:
1 parent
dc6615f98f
commit
0b32775d40
197 files changed
+630
-634
No files matched your search
@@ -20,7 +20,7 @@ import { TableHead } from "../table/table-head";
|
||||
import { volumesStore } from "./volumes.store";
|
||||
import kebabCase from "lodash/kebabCase";
|
||||
|
||||
interface Props {
|
||||
export interface VolumeDetailsListProps {
|
||||
persistentVolumes: PersistentVolume[];
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ enum sortBy {
|
||||
}
|
||||
|
||||
@observer
|
||||
export class VolumeDetailsList extends React.Component<Props> {
|
||||
export class VolumeDetailsList extends React.Component<VolumeDetailsListProps> {
|
||||
private sortingCallbacks = {
|
||||
[sortBy.name]: (volume: PersistentVolume) => volume.getName(),
|
||||
[sortBy.capacity]: (volume: PersistentVolume) => volume.getCapacity(),
|
||||
|
||||
@@ -17,11 +17,11 @@ import { KubeObjectMeta } from "../kube-object-meta";
|
||||
import { getDetailsUrl } from "../kube-detail-params";
|
||||
import logger from "../../../common/logger";
|
||||
|
||||
interface Props extends KubeObjectDetailsProps<PersistentVolume> {
|
||||
export interface PersistentVolumeDetailsProps extends KubeObjectDetailsProps<PersistentVolume> {
|
||||
}
|
||||
|
||||
@observer
|
||||
export class PersistentVolumeDetails extends React.Component<Props> {
|
||||
export class PersistentVolumeDetails extends React.Component<PersistentVolumeDetailsProps> {
|
||||
render() {
|
||||
const { object: volume } = this.props;
|
||||
|
||||
|
||||
@@ -25,11 +25,11 @@ enum columnId {
|
||||
age = "age",
|
||||
}
|
||||
|
||||
interface Props extends RouteComponentProps<VolumesRouteParams> {
|
||||
export interface PersistentVolumesProps extends RouteComponentProps<VolumesRouteParams> {
|
||||
}
|
||||
|
||||
@observer
|
||||
export class PersistentVolumes extends React.Component<Props> {
|
||||
export class PersistentVolumes extends React.Component<PersistentVolumesProps> {
|
||||
render() {
|
||||
return (
|
||||
<KubeObjectListLayout
|
||||
|
||||
Reference in new issue
Block a user