Skip to content

Commit

Permalink
fix: tsc error
Browse files Browse the repository at this point in the history
  • Loading branch information
ekraffmiller committed Aug 27, 2024
1 parent fcdf8c4 commit f021547
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { LinkToPage } from '../../../shared/link-to-page/LinkToPage'
import { Route } from '../../../Route.enum'
import { Icon, IconName } from '@iqss/dataverse-design-system'
import { CollectionPreview } from '../../../../collection/domain/models/CollectionPreview'
import { DvObjectType } from '../../../../shared/hierarchy/domain/models/UpwardHierarchyNode'

interface CollectionCardCardThumbnailProps {
collectionPreview: CollectionPreview
Expand All @@ -11,7 +12,10 @@ interface CollectionCardCardThumbnailProps {
export function CollectionCardThumbnail({ collectionPreview }: CollectionCardCardThumbnailProps) {
return (
<div className={styles.thumbnail}>
<LinkToPage page={Route.COLLECTIONS} searchParams={{ id: collectionPreview.id.toString() }}>
<LinkToPage
type={DvObjectType.COLLECTION}
page={Route.COLLECTIONS}
searchParams={{ id: collectionPreview.id.toString() }}>
{collectionPreview.thumbnail ? (
<img
className={styles['preview-image']}
Expand Down

0 comments on commit f021547

Please sign in to comment.