Skip to content

Commit

Permalink
fix: missing type prop on LinkToPage
Browse files Browse the repository at this point in the history
  • Loading branch information
g-saracca committed Aug 21, 2024
1 parent dd60f36 commit 0ca4a1f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { DatasetLabels } from '../../../dataset/dataset-labels/DatasetLabels'
import { FileCardIcon } from './FileCardIcon'
import { FileType } from '../../../../files/domain/models/FileMetadata'
import { FileCardHelper } from './FileCardHelper'
import { DvObjectType } from '../../../../shared/hierarchy/domain/models/UpwardHierarchyNode'

interface FileCardHeaderProps {
filePreview: FilePreview
Expand All @@ -18,6 +19,7 @@ export function FileCardHeader({ filePreview }: FileCardHeaderProps) {
<div className={styles.title}>
<LinkToPage
page={Route.FILES}
type={DvObjectType.FILE}
searchParams={FileCardHelper.getFileSearchParams(
filePreview.id,
filePreview.datasetPublishingStatus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Route } from '../../../Route.enum'
import { FileChecksum } from '../../../dataset/dataset-files/files-table/file-info/file-info-cell/file-info-data/FileChecksum'
import { FileTabularData } from '../../../dataset/dataset-files/files-table/file-info/file-info-cell/file-info-data/FileTabularData'
import { FileCardHelper } from './FileCardHelper'
import { DvObjectType } from '../../../../shared/hierarchy/domain/models/UpwardHierarchyNode'

interface FileCardInfoProps {
filePreview: FilePreview
Expand All @@ -21,6 +22,7 @@ export function FileCardInfo({ filePreview, persistentId }: FileCardInfoProps) {
{DateHelper.toDisplayFormat(filePreview.metadata.depositDate)} -{' '}
<LinkToPage
page={Route.DATASETS}
type={DvObjectType.DATASET}
searchParams={FileCardHelper.getDatasetSearchParams(
persistentId,
filePreview.datasetPublishingStatus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Route } from '../../../Route.enum'
import { FileThumbnail } from '../../../dataset/dataset-files/files-table/file-info/file-info-cell/file-info-data/file-thumbnail/FileThumbnail'
import { FilePreview } from '../../../../files/domain/models/FilePreview'
import { FileCardHelper } from './FileCardHelper'
import { DvObjectType } from '../../../../shared/hierarchy/domain/models/UpwardHierarchyNode'

interface FileCardThumbnailProps {
filePreview: FilePreview
Expand All @@ -15,6 +16,7 @@ export function FileCardThumbnail({ filePreview }: FileCardThumbnailProps) {
<div className={styles.thumbnail}>
<LinkToPage
page={Route.FILES}
type={DvObjectType.FILE}
searchParams={FileCardHelper.getFileSearchParams(
filePreview.id,
filePreview.datasetPublishingStatus
Expand Down

0 comments on commit 0ca4a1f

Please sign in to comment.