From 50f1c501a87ef5f5650750dbeca797e833ec7c3a Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 14 Nov 2023 12:39:09 +0100 Subject: refactor(components): replace Sharing with SharingWidget component * all the widgets should have a coherent name * fix mailto uri * remove useless CSS * add tests --- .../organisms/widgets/sharing.stories.tsx | 61 ---------------------- 1 file changed, 61 deletions(-) delete mode 100644 src/components/organisms/widgets/sharing.stories.tsx (limited to 'src/components/organisms/widgets/sharing.stories.tsx') diff --git a/src/components/organisms/widgets/sharing.stories.tsx b/src/components/organisms/widgets/sharing.stories.tsx deleted file mode 100644 index d2be621..0000000 --- a/src/components/organisms/widgets/sharing.stories.tsx +++ /dev/null @@ -1,61 +0,0 @@ -import type { ComponentMeta, ComponentStory } from '@storybook/react'; -import { Sharing as SharingWidget } from './sharing'; - -/** - * Sharing - Storybook Meta - */ -export default { - title: 'Organisms/Widgets', - component: SharingWidget, - argTypes: { - className: { - control: { - type: 'text', - }, - description: 'Set additional classnames to the sharing links list.', - table: { - category: 'Styles', - }, - type: { - name: 'string', - required: false, - }, - }, - data: { - description: 'The page data.', - type: { - name: 'object', - required: true, - value: {}, - }, - }, - media: { - control: { - type: null, - }, - description: 'An array of active and ordered sharing medium.', - type: { - name: 'string', - required: true, - }, - }, - }, -} as ComponentMeta; - -const Template: ComponentStory = (args) => ( - -); - -/** - * Widgets Stories - Sharing - */ -export const Sharing = Template.bind({}); -Sharing.args = { - data: { - excerpt: - 'Alias similique eius ducimus laudantium aspernatur. Est rem ut eum temporibus sit reprehenderit aut non molestias. Vel dolorem expedita labore quo inventore aliquid nihil nam. Possimus nobis enim quas corporis eos.', - title: 'Accusantium totam nostrum', - url: 'https://www.example.test', - }, - media: ['diaspora', 'facebook', 'linkedin', 'twitter', 'email'], -}; -- cgit v1.2.3