aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/layout/card.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-09-27 17:38:23 +0200
committerArmand Philippot <git@armandphilippot.com>2023-10-24 12:25:00 +0200
commit7255d25f6834a208c0ed44636356cc260f6ab6ba (patch)
tree88016a958190f766a3ac0ab4b77f4732e17502e8 /src/components/molecules/layout/card.tsx
parentba793e043e4d8515b1a9ea490ee2c5f92b1fd6c2 (diff)
refactor(components): rewrite Heading component
* remove `alignment` and `withMargin` props (consumer should handle that) * move styles to Sass placeholders to avoid repeats with headings coming from WordPress * refactor some other components that depend on Heading to avoid ESlint errors
Diffstat (limited to 'src/components/molecules/layout/card.tsx')
-rw-r--r--src/components/molecules/layout/card.tsx8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/components/molecules/layout/card.tsx b/src/components/molecules/layout/card.tsx
index f39a430..722e5a5 100644
--- a/src/components/molecules/layout/card.tsx
+++ b/src/components/molecules/layout/card.tsx
@@ -65,13 +65,7 @@ export const Card: FC<CardProps> = ({
{cover ? (
<ResponsiveImage {...cover} className={styles.cover} />
) : null}
- <Heading
- // eslint-disable-next-line react/jsx-no-literals -- Hardcoded config
- alignment="center"
- className={styles.title}
- id={headingId}
- level={titleLevel}
- >
+ <Heading className={styles.title} id={headingId} level={titleLevel}>
{title}
</Heading>
</header>