diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-11-13 19:03:44 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-11-13 19:03:44 +0100 |
| commit | fb29b0f017fae162ffa7ad6bdfc80099346802de (patch) | |
| tree | 3f8aebb73457ee27b86b8b1a3106a5f9bc35e8da /src/components/organisms/widgets/social-media.stories.tsx | |
| parent | e331106e56d59a8b987230860b66214139c12ef6 (diff) | |
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
Diffstat (limited to 'src/components/organisms/widgets/social-media.stories.tsx')
| -rw-r--r-- | src/components/organisms/widgets/social-media.stories.tsx | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/components/organisms/widgets/social-media.stories.tsx b/src/components/organisms/widgets/social-media.stories.tsx deleted file mode 100644 index 8064157..0000000 --- a/src/components/organisms/widgets/social-media.stories.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import type { ComponentMeta, ComponentStory } from '@storybook/react'; -import { Heading } from '../../atoms'; -import { SocialMedia as SocialMediaWidget, type Media } from './social-media'; - -/** - * SocialMedia - Storybook Meta - */ -export default { - title: 'Organisms/Widgets', - component: SocialMediaWidget, - argTypes: { - media: { - description: 'The links data.', - type: { - name: 'object', - required: true, - value: {}, - }, - }, - }, -} as ComponentMeta<typeof SocialMediaWidget>; - -const Template: ComponentStory<typeof SocialMediaWidget> = (args) => ( - <SocialMediaWidget {...args} /> -); - -const media: Media[] = [ - { 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, -}; |
