From 12a03a9a72f7895d571dbaeeb245d92aa277a610 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Fri, 6 Oct 2023 17:48:03 +0200
Subject: refactor(components): merge HeadingButton and Widget components

The HeadingButton component was only used inside Widget component and
it is not very useful on its own so I merge the two components in a
new Collapsible component.
---
 src/pages/cv.tsx | 21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

(limited to 'src/pages/cv.tsx')

diff --git a/src/pages/cv.tsx b/src/pages/cv.tsx
index 84a1bb9..206c7f5 100644
--- a/src/pages/cv.tsx
+++ b/src/pages/cv.tsx
@@ -197,20 +197,25 @@ const CVPage: NextPageWithLayout = () => {
 
   const widgets = [
     <ImageWidget
-      // eslint-disable-next-line react/jsx-no-literals -- Key allowed
-      key="image-widget"
-      expanded={true}
-      title={imageWidgetTitle}
-      level={2}
-      image={image}
       description={cvCaption}
+      heading={
+        <Heading isFake level={3}>
+          {imageWidgetTitle}
+        </Heading>
+      }
+      image={image}
       imageClassName={styles.image}
+      // eslint-disable-next-line react/jsx-no-literals -- Key allowed
+      key="image-widget"
     />,
     <SocialMedia
+      heading={
+        <Heading isFake level={3}>
+          {socialMediaTitle}
+        </Heading>
+      }
       // eslint-disable-next-line react/jsx-no-literals -- Key allowed
       key="social-media"
-      title={socialMediaTitle}
-      level={2}
       media={[
         {
           icon: 'Github',
-- 
cgit v1.2.3

