Skip to content

Commit

Permalink
feat(customerCases): add title links to customer cases on landing page (
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiazom authored Oct 17, 2024
1 parent 954247b commit 06680fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/customerCases/CustomerCases.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Link from "next/link";

import LinkButton from "src/components/linkButton/LinkButton";
import Text from "src/components/text/Text";
import { sharedCustomerCasesLink } from "src/components/utils/linkTypes";
Expand Down Expand Up @@ -30,7 +32,9 @@ const CustomerCases = async ({ customerCasesPage }: CustomerCasesProps) => {
{sharedCustomerCases && sharedCustomerCases.data.length > 0 ? (
sharedCustomerCases.data.map((customerCase) => (
<div key={customerCase._id}>
<Text type="h2">{customerCase.basicTitle}</Text>
<Link href={`${customerCasesPage.slug}/${customerCase.slug}`}>
<Text type="h2">{customerCase.basicTitle}</Text>
</Link>
{customerCase.description && (
<Text>{customerCase.description}</Text>
)}
Expand Down

0 comments on commit 06680fe

Please sign in to comment.