From fb29b0f017fae162ffa7ad6bdfc80099346802de Mon Sep 17 00:00:00 2001 From: Armand Philippot 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 --- .../organisms/widgets/social-media.stories.tsx | 43 ---------------------- 1 file changed, 43 deletions(-) delete mode 100644 src/components/organisms/widgets/social-media.stories.tsx (limited to 'src/components/organisms/widgets/social-media.stories.tsx') 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; - -const Template: ComponentStory = (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: ( - - Follow me - - ), - media, -}; -- cgit v1.2.3