Skip to content

Commit

Permalink
fix: move last published link in concept search hit
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsOveTen committed Nov 29, 2024
1 parent f036bf2 commit 06c48c8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions apps/concept-catalog/components/concept-search-hits/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,9 @@ const ConceptSearchHits: React.FC<Props> = ({
? localization.publicationState.publishedInFDK
: localization.publicationState.unpublished}
</p>
</div>
<div className={styles.rowSpaceBetween}>
{searchHit.sistPublisertId && !searchHit?.erPublisert && (
<div className={styles.metaData}>
<>
<p className={styles.dot}></p>
<Link
prefetch={false}
href={
Expand All @@ -83,8 +82,10 @@ const ConceptSearchHits: React.FC<Props> = ({
>
{localization.searchHit.lastPublished}
</Link>
</div>
</>
)}
</div>
<div className={styles.rowSpaceBetween}>
{searchHit?.assignedUser && (
<p className={styles.greyFont}>
{assignableUsers?.find((user) => user.id === searchHit.assignedUser)?.name ?? localization.unknown}
Expand Down

0 comments on commit 06c48c8

Please sign in to comment.