diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-11-14 12:39:09 +0100 | 
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-11-14 12:50:32 +0100 | 
| commit | 50f1c501a87ef5f5650750dbeca797e833ec7c3a (patch) | |
| tree | f1f55092696c7261eaa7f9f9a9338253ede65c2b /src/components/templates/page | |
| parent | fb29b0f017fae162ffa7ad6bdfc80099346802de (diff) | |
refactor(components): replace Sharing with SharingWidget component
* all the widgets should have a coherent name
* fix mailto uri
* remove useless CSS
* add tests
Diffstat (limited to 'src/components/templates/page')
| -rw-r--r-- | src/components/templates/page/page-layout.stories.tsx | 8 | 
1 files changed, 5 insertions, 3 deletions
| 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', | 
