Skip to content

Commit

Permalink
feat: exports via main button don't include orphans (#4296)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fran McDade authored and Fran McDade committed Dec 9, 2024
1 parent a3d3190 commit 98944b3
Showing 1 changed file with 4 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
import { MANIFEST_DOWNLOAD_FORMAT } from "@databiosphere/findable-ui/lib/apis/azul/common/entities";
import { FileManifestDownload } from "@databiosphere/findable-ui/lib/components/Export/components/ManifestDownload/components/ManifestDownloadEntity/components/FileManifestDownload/fileManifestDownload";
import { ManifestDownloadEntityProps } from "@databiosphere/findable-ui/lib/components/Export/components/ManifestDownload/components/ManifestDownloadEntity/manifestDownloadEntity";
import { FILE_MANIFEST_TYPE } from "@databiosphere/findable-ui/lib/hooks/useFileManifest/common/entities";
import { useRequestFileManifest } from "@databiosphere/findable-ui/lib/hooks/useFileManifest/useRequestFileManifest";
import { useFileManifest } from "@databiosphere/findable-ui/lib/hooks/useFileManifest/useFileManifest";

export const ManifestDownloadEntity = ({
filters,
}: Omit<
ManifestDownloadEntityProps,
"fileManifestType" | "metadataFilters"
>): JSX.Element => {
useRequestFileManifest(
FILE_MANIFEST_TYPE.ENTITY_DOWNLOAD_MANIFEST,
MANIFEST_DOWNLOAD_FORMAT.COMPACT,
filters,
undefined
);
return (
<>
<FileManifestDownload filters={filters} />
</>
);
}: Pick<ManifestDownloadEntityProps, "filters">): JSX.Element => {
useFileManifest(filters);

Check failure on line 8 in app/components/Export/components/AnVILExplorer/components/ManifestDownload/components/ManifestDownloadEntity/manifestDownloadEntity.tsx

View workflow job for this annotation

GitHub Actions / build

Argument of type 'Filters' is not assignable to parameter of type 'string'.
return <FileManifestDownload filters={filters} />;
};

0 comments on commit 98944b3

Please sign in to comment.