From f2f6812fbd5d2dfd4ea75a28a68a031c0426ca2f Mon Sep 17 00:00:00 2001 From: yaacov Date: Wed, 26 Jun 2019 15:38:50 +0300 Subject: [PATCH] remove empty cleasses --- frontend/packages/console-app/package.json | 1 + .../components/vm-templates/vm-template.tsx | 20 +++++++------------ 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/frontend/packages/console-app/package.json b/frontend/packages/console-app/package.json index d65fd8fe41c4..6037d3ccf958 100644 --- a/frontend/packages/console-app/package.json +++ b/frontend/packages/console-app/package.json @@ -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": { diff --git a/frontend/packages/kubevirt-plugin/src/components/vm-templates/vm-template.tsx b/frontend/packages/kubevirt-plugin/src/components/vm-templates/vm-template.tsx index 34ae9fd001cb..32d28ba0f1fe 100644 --- a/frontend/packages/kubevirt-plugin/src/components/vm-templates/vm-template.tsx +++ b/frontend/packages/kubevirt-plugin/src/components/vm-templates/vm-template.tsx @@ -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; @@ -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 ( @@ -113,20 +113,16 @@ const VmTemplateTableRow = ({ template, index, key, style }: VmTemplateTableRowP }; VmTemplateTableRow.displayName = 'VmTemplateTableRow'; -const VirtualMachineTemplates: React.FC< - React.ComponentProps & VirtualMachineTemplatesProps -> = (props) => ( - ) => { + return
-); +}; -const VirtualMachineTemplatesPage: React.FC< - React.ComponentProps & VirtualMachineTemplatesPageProps -> = (props) => ( +const VirtualMachineTemplatesPage = (props: React.ComponentProps) => (