aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/cv.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-10-06 17:48:03 +0200
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:14:41 +0100
commit12a03a9a72f7895d571dbaeeb245d92aa277a610 (patch)
tree41b6b07928e4f5e101b7ea5d8389bb4325bbac76 /src/pages/cv.tsx
parentfb860884857da73ee5b5e897745301cdf1d770a2 (diff)
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.
Diffstat (limited to 'src/pages/cv.tsx')
-rw-r--r--src/pages/cv.tsx21
1 files changed, 13 insertions, 8 deletions
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',