Skip to content

Commit

Permalink
remove empty cleasses
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacov committed Jun 26, 2019
1 parent 1672a08 commit f2f6812
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
1 change: 1 addition & 0 deletions frontend/packages/console-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"@console/dev-console": "0.0.0-fixed",
"@console/internal": "0.0.0-fixed",
"@console/plugin-sdk": "0.0.0-fixed",
"@console/kubevirt-plugin": "0.0.0-fixed",
"@console/shared": "0.0.0-fixed"
},
"consolePlugin": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { ListPage, Table, TableRow, TableData } from '@console/internal/componen
import { Kebab, ResourceLink, ResourceKebab } from '@console/internal/components/utils';
import { getName, getNamespace, DASH, getUid } from '@console/shared';
import { TemplateModel } from '@console/internal/models';
import { K8sResourceKind } from '../../../../../public/module/k8s/index';
import { TemplateKind } from '../../../../../public/module/k8s/index';

export const menuActions = Kebab.factory.common;

Expand Down Expand Up @@ -77,7 +77,7 @@ const VmTempleateTableHeader = () => {
};
VmTempleateTableHeader.displayName = 'VmTemplateTableHeader';

const VmTemplateTableRow = ({ template, index, key, style }: VmTemplateTableRowProps) => {
const VmTemplateTableRow = ({obj: template, index, key, style}: VmTemplateTableRowProps ) => {
const os = getTemplateOperatingSystems([template])[0];

return (
Expand Down Expand Up @@ -113,20 +113,16 @@ const VmTemplateTableRow = ({ template, index, key, style }: VmTemplateTableRowP
};
VmTemplateTableRow.displayName = 'VmTemplateTableRow';

const VirtualMachineTemplates: React.FC<
React.ComponentProps<typeof Table> & VirtualMachineTemplatesProps
> = (props) => (
<Table
const VirtualMachineTemplates = (props: React.ComponentProps<typeof Table>) => {
return <Table
{...props}
aria-label={labelPlural}
Header={VmTempleateTableHeader}
Row={VmTemplateTableRow}
/>
);
};

const VirtualMachineTemplatesPage: React.FC<
React.ComponentProps<typeof ListPage> & VirtualMachineTemplatesPageProps
> = (props) => (
const VirtualMachineTemplatesPage = (props: React.ComponentProps<typeof ListPage>) => (
<ListPage
{...props}
title={labelPlural}
Expand All @@ -138,12 +134,10 @@ const VirtualMachineTemplatesPage: React.FC<
);

type VmTemplateTableRowProps = {
template: K8sResourceKind;
obj: TemplateKind;
index: number;
key: string;
style: any;
};
type VirtualMachineTemplatesProps = {};
type VirtualMachineTemplatesPageProps = {};

export { VirtualMachineTemplates, VirtualMachineTemplatesPage };

0 comments on commit f2f6812

Please sign in to comment.