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

Commit 8291121

Browse files
author
Manuel Proß
committed
refactor(web): add ternery to prevent 'className=false'
1 parent d481790 commit 8291121

File tree

1 file changed

+1
-1
lines changed
  • web/src/components/Strapi/Common

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type CardContentProps = {
1212

1313
export default function Card({ headline, text, button, hasShadow = false }: CardContentProps) {
1414
return (
15-
<div className={`${hasShadow && "flex flex-col rounded pt-7 pb-4 px-10 bg-gray-4 drop-shadow"}`}>
15+
<div className={`${hasShadow ? "flex flex-col rounded pt-7 pb-4 px-10 bg-gray-4 drop-shadow" : ""}`}>
1616
<h2 className="h2-prefix">{headline}</h2>
1717
{text && <Markdown className="markdown">{text}</Markdown>}
1818
{button && (

0 commit comments

Comments
 (0)