aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/contact.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/contact.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/contact.tsx')
-rw-r--r--src/pages/contact.tsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pages/contact.tsx b/src/pages/contact.tsx
index 519bcac..4e4e217 100644
--- a/src/pages/contact.tsx
+++ b/src/pages/contact.tsx
@@ -13,6 +13,7 @@ import {
type NoticeKind,
PageLayout,
SocialMedia,
+ Heading,
} from '../components';
import { meta } from '../content/pages/contact.mdx';
import { sendMail } from '../services/graphql';
@@ -83,10 +84,13 @@ const ContactPage: NextPageWithLayout = () => {
const widgets = [
<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',