Skip to content

Commit

Permalink
Export ResourceList and action factories
Browse files Browse the repository at this point in the history
  • Loading branch information
ruscoder committed Nov 25, 2024
1 parent d73f893 commit b7f3a4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/components/ResourceList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
HeaderQuestionnaireAction,
BatchQuestionnaireAction,
} from './actions';
export { navigationAction, customAction, questionnaireAction } from './actions';
import { useResourceList } from './hooks';
import { SearchBarColumn } from '../SearchBar/types';

Expand All @@ -32,7 +33,7 @@ type RecordType<R extends Resource> = { resource: R; bundle: Bundle };
interface ResourceListProps<R extends Resource> {
title: string;
resourceType: R['resourceType'];
searchParams: SearchParams;
searchParams?: SearchParams;
searchBarColumns?: SearchBarColumn[];
tableColumns: ColumnsType<RecordType<R>>;
getRecordActions?: (
Expand Down Expand Up @@ -66,7 +67,7 @@ export function ResourceList<R extends Resource>({
selectedRowKeys,
setSelectedRowKeys,
selectedResourcesList,
} = useResourceList(resourceType, columnsFilterValues, searchParams);
} = useResourceList(resourceType, columnsFilterValues, searchParams ?? {});

const headerActions = getHeaderActions?.() ?? [];
const batchActions = getBatchActions?.() ?? [];
Expand Down
3 changes: 2 additions & 1 deletion src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ export * from './PatientEncounter';
export * from './QuestionnaireResponseForm';
export * from './QuestionnairesWizard';
export * from './ResourceTable';
export * from './ResourceList';
export * from './SearchBar';
export * from './SearchBar/hooks';
export * from './Select';
export * from './Spinner';
export * from './Table';
export * from './TextWithMacroFill';
export * from './TimePicker';
export * from './Typography';
export * from './Typography';

0 comments on commit b7f3a4d

Please sign in to comment.