From 50f1c501a87ef5f5650750dbeca797e833ec7c3a Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
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
---
 src/components/templates/page/page-layout.stories.tsx | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(limited to 'src/components/templates/page/page-layout.stories.tsx')

diff --git a/src/components/templates/page/page-layout.stories.tsx b/src/components/templates/page/page-layout.stories.tsx
index 20740db..9f0cce1 100644
--- a/src/components/templates/page/page-layout.stories.tsx
+++ b/src/components/templates/page/page-layout.stories.tsx
@@ -1,6 +1,6 @@
 import type { ComponentMeta, ComponentStory } from '@storybook/react';
 import { ButtonLink, Heading, Link } from '../../atoms';
-import { LinksListWidget, PostsList, Sharing } from '../../organisms';
+import { LinksListWidget, PostsList, SharingWidget } from '../../organisms';
 import { LayoutBase } from '../layout/layout.stories';
 import { PageLayout as PageLayoutComponent } from './page-layout';
 
@@ -239,9 +239,10 @@ SinglePage.args = {
     </>
   ),
   widgets: [
-    <Sharing
+    <SharingWidget
       key="sidebar2-widget1"
       data={{ excerpt: pageIntro, title: pageTitle, url: '#' }}
+      heading={<Heading level={3}>Share</Heading>}
       media={[
         'diaspora',
         'email',
@@ -330,9 +331,10 @@ Post.args = {
     </>
   ),
   widgets: [
-    <Sharing
+    <SharingWidget
       key="sidebar2-widget1"
       data={{ excerpt: pageIntro, title: pageTitle, url: '#' }}
+      heading={<Heading level={3}>Share</Heading>}
       media={[
         'diaspora',
         'email',
-- 
cgit v1.2.3

