Skip to content

Commit

Permalink
Merge pull request #97 from vim/fix-missing-cta-in-section
Browse files Browse the repository at this point in the history
fix(web): render possible cta from strapi backend
  • Loading branch information
manuel-pross authored Aug 6, 2024
2 parents 8ef3133 + b6e48d7 commit 3554637
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/components/Strapi/Common/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Card({ headline, text, button, hasShadow = false }: Card
<h2 className="h2-prefix">{headline}</h2>
{text && <Markdown className="markdown">{text}</Markdown>}
{button && (
<Link className="btn-primary block ml-auto mt-6 mr-0" href={button.url}>
<Link className="btn-primary block w-fit ml-auto mt-6 mr-0" href={button.url}>
{button.text}
</Link>
)}
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/Strapi/Sections/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function PageContent({ entries }: ContentProps) {
case "Accordion":
return <div className="text-white">Accordion</div>;
default:
return <Card headline={entry.headline} text={entry.description} />;
return <Card headline={entry.headline} text={entry.description} button={entry.button} />;
}
};

Expand Down

0 comments on commit 3554637

Please sign in to comment.