Skip to content

Commit

Permalink
fix: Fix marketplace page search function (#27)
Browse files Browse the repository at this point in the history
Jira: EPMDEDP-12467
Resolves: #27
Change-Id: I2c22103f72ed9c8cc5de8014786a65aad83e4fcf
  • Loading branch information
callmevladik committed Sep 4, 2023
1 parent cd55334 commit 4a461c9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Utils } from '@kinvolk/headlamp-plugin/lib';
import React from 'react';
import { EmptyList } from '../../../../../../components/EmptyList';
import { Table } from '../../../../../../components/Table';
Expand All @@ -10,9 +9,9 @@ export const TemplatesTable = ({
activeTemplate,
data,
handleTemplateClick,
filterFunction,
}: TemplatesTableProps) => {
const columns = useColumns();
const filterFunc = Utils.useFilterFunc();

return (
<Table<EDPTemplateKubeObjectInterface>
Expand All @@ -22,7 +21,7 @@ export const TemplatesTable = ({
isSelected={row => row.metadata.uid === activeTemplate?.metadata.uid}
handleRowClick={(event, row) => handleTemplateClick(event, row)}
emptyListComponent={<EmptyList missingItemName={'templates'} />}
filterFunction={filterFunc}
filterFunction={filterFunction}
/>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ export interface TemplatesTableProps {
template: EDPTemplateKubeObjectInterface
): void;
activeTemplate: EDPTemplateKubeObjectInterface;
filterFunction?: ((...args: EDPTemplateKubeObjectInterface[]) => boolean) | null;
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export const MarketplaceList = () => {
data={items}
activeTemplate={activeTemplate}
handleTemplateClick={handleTemplateClick}
filterFunction={filterFunction}
/>
) : viewMode === VIEW_MODES.GRID ? (
<DataGrid<EDPTemplateKubeObjectInterface>
Expand Down

0 comments on commit 4a461c9

Please sign in to comment.