Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit 3554637

Browse files
authored
Merge pull request #97 from vim/fix-missing-cta-in-section
fix(web): render possible cta from strapi backend
2 parents 8ef3133 + b6e48d7 commit 3554637

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/src/components/Strapi/Common/Card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function Card({ headline, text, button, hasShadow = false }: Card
1616
<h2 className="h2-prefix">{headline}</h2>
1717
{text && <Markdown className="markdown">{text}</Markdown>}
1818
{button && (
19-
<Link className="btn-primary block ml-auto mt-6 mr-0" href={button.url}>
19+
<Link className="btn-primary block w-fit ml-auto mt-6 mr-0" href={button.url}>
2020
{button.text}
2121
</Link>
2222
)}

web/src/components/Strapi/Sections/Content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default function PageContent({ entries }: ContentProps) {
5757
case "Accordion":
5858
return <div className="text-white">Accordion</div>;
5959
default:
60-
return <Card headline={entry.headline} text={entry.description} />;
60+
return <Card headline={entry.headline} text={entry.description} button={entry.button} />;
6161
}
6262
};
6363

0 commit comments

Comments
 (0)