From fb29b0f017fae162ffa7ad6bdfc80099346802de Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Mon, 13 Nov 2023 19:03:44 +0100
Subject: refactor(components): replace SocialMedia with SocialMediaWidget

* the goal is to make the name of the widgets coherent
* remove useless CSS
* replace Media type with SocialMediaData
---
 .../social-media-widget.stories.tsx                | 43 ++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 src/components/organisms/widgets/social-media-widget/social-media-widget.stories.tsx

(limited to 'src/components/organisms/widgets/social-media-widget/social-media-widget.stories.tsx')

diff --git a/src/components/organisms/widgets/social-media-widget/social-media-widget.stories.tsx b/src/components/organisms/widgets/social-media-widget/social-media-widget.stories.tsx
new file mode 100644
index 0000000..5c6efb0
--- /dev/null
+++ b/src/components/organisms/widgets/social-media-widget/social-media-widget.stories.tsx
@@ -0,0 +1,43 @@
+import type { ComponentMeta, ComponentStory } from '@storybook/react';
+import { Heading } from '../../../atoms';
+import { SocialMediaWidget, type SocialMediaData } from './social-media-widget';
+
+/**
+ * SocialMedia - Storybook Meta
+ */
+export default {
+  title: 'Organisms/Widgets/SocialMedia',
+  component: SocialMediaWidget,
+  argTypes: {
+    media: {
+      description: 'The social media data.',
+      type: {
+        name: 'object',
+        required: true,
+        value: {},
+      },
+    },
+  },
+} as ComponentMeta<typeof SocialMediaWidget>;
+
+const Template: ComponentStory<typeof SocialMediaWidget> = (args) => (
+  <SocialMediaWidget {...args} />
+);
+
+const media: SocialMediaData[] = [
+  { icon: 'Github', id: 'github', label: 'Github', url: '#' },
+  { icon: 'LinkedIn', id: 'gitlab', label: 'Gitlab', url: '#' },
+];
+
+/**
+ * Widgets Stories - Social media
+ */
+export const SocialMedia = Template.bind({});
+SocialMedia.args = {
+  heading: (
+    <Heading isFake level={3}>
+      Follow me
+    </Heading>
+  ),
+  media,
+};
-- 
cgit v1.2.3

