Skip to content

Commit

Permalink
dealing with tsc errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaiahWren committed Jul 17, 2023
1 parent 0a249fd commit 0872d53
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend/hub/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function pulpAPI(strings: TemplateStringsArray, ...values: string[]) {
}

export type QueryParams = {
[key: string]: string;
[key: string]: string | undefined;
};

export function getQueryString(queryParams: QueryParams) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ import { ITableColumn, TextCell } from '../../../../framework';
import { RouteObj } from '../../../Routes';
import { CollectionVersionSearch } from '../CollectionVersionSearch';

export function useCollectionVersionColumns(_options?: {
disableSort?: boolean;
disableLinks?: boolean;
}) {
export function useCollectionVersionColumns() {
const { t } = useTranslation();
return useMemo<ITableColumn<CollectionVersionSearch>[]>(
() => [
Expand Down
2 changes: 2 additions & 0 deletions frontend/hub/namespaces/HubNamespace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export interface LatestMetadataType {
}

export interface HubNamespace {
description?: string;
company?: string;
pulp_href: string;
pulp_created: string;
name: string;
Expand Down
4 changes: 2 additions & 2 deletions frontend/hub/namespaces/HubNamespaces.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useHubNamespaceActions } from './hooks/useHubNamespaceActions';
import { useHubNamespaceFilters } from './hooks/useHubNamespaceFilters';
import { useHubNamespaceToolbarActions } from './hooks/useHubNamespaceToolbarActions';
import { useHubNamespacesColumns } from './hooks/useHubNamespacesColumns';
import { idKeyFn, pulpAPI } from '../api';
import { nameKeyFn, pulpAPI } from '../api';

export function Namespaces() {
const { t } = useTranslation();
Expand Down Expand Up @@ -75,7 +75,7 @@ export function CommonNamespaces({
const rowActions = useHubNamespaceActions();
const view = usePulpView<HubNamespace>({
url,
keyFn: idKeyFn,
keyFn: nameKeyFn,
toolbarFilters,
tableColumns,
queryParams,
Expand Down

0 comments on commit 0872d53

Please sign in to comment.