Skip to content

Commit

Permalink
Update WorkPageHeader to display contributors when creators are unava…
Browse files Browse the repository at this point in the history
…ilable
  • Loading branch information
Adamik10 committed Dec 19, 2024
1 parent b5b636f commit 4afdd08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/pages/workPageLayout/WorkPageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ const WorkPageHeader = ({ work }: WorkPageHeaderProps) => {
className="hyphens-auto break-words text-typo-heading-3 lg:mt-0 lg:text-typo-heading-2">
{`${selectedManifestation?.titles?.full || ""}${!!titleSuffix ? ` (${titleSuffix})` : ""}`}
</h1>
<p className="mt-grid-gap-2 text-typo-caption uppercase lg:mt-7">{`af ${displayCreators(work.creators, 100)}`}</p>
<h2 className="mt-grid-gap-2 text-typo-subtitle-sm uppercase lg:mt-7">
{`af ${displayCreators(work.creators, 100) || displayCreators(selectedManifestation?.contributors || [], 100)}`}
</h2>
</div>
<div className="col-span-4 mt-grid-gap-3 flex flex-col items-end justify-end lg:order-3 lg:mt-0">
<WorkPageButtons workId={work.workId} />
Expand Down

0 comments on commit 4afdd08

Please sign in to comment.