From 3d6b22341b2ad117bd6d3148fa1a13cbb418fffe Mon Sep 17 00:00:00 2001 From: Virtute90 Date: Fri, 13 Sep 2024 11:54:30 +0200 Subject: [PATCH 1/2] docs: corretta documentazione --- stories/Components/Notification.stories.tsx | 97 +-------------------- stories/Documentation/Notification.mdx | 6 +- 2 files changed, 2 insertions(+), 101 deletions(-) diff --git a/stories/Components/Notification.stories.tsx b/stories/Components/Notification.stories.tsx index 1ebd99839..42d3b334e 100644 --- a/stories/Components/Notification.stories.tsx +++ b/stories/Components/Notification.stories.tsx @@ -315,99 +315,4 @@ export const FixedPositions: Story = { ); } -}; - -export const NotificationOptionsComponent_Fake = () => { - return null; -}; - -//Componenti non usati ma presenti nella precedente documentazione - -/* - -export const _NotificationWithMessage_story_hidden: Story = { - render: () => { - return ( -
- - - -
- ); - }, - parameters: { - // disables Chromatic's snapshotting on a story level - chromatic: { disableSnapshot: true } - } -}; - -export const EsempioInterattivo: Story = { - render: ({ - title, - message, - duration, - icon, - state, - fix, - dismissable, - closeOnClick - }) => { - return ( -
- - - -
- ); - }, - parameters : { controls: { expanded: true } } - args : { - title: 'Titolo', - message: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor…', - fix: undefined, - dismissable: false, - closeOnClick: false, - duration: 6000, - icon: undefined, - state: undefined - }, - argTypes : { - fix: { - control: { - type: 'select', - options: [undefined, 'top', 'bottom', 'right', 'left'] - } - }, - state: { - control: { - type: 'select', - options: [undefined, 'success', 'error', 'info', 'warning'] - } - }, - icon: { - control: { - type: 'select', - options: [undefined, 'it-tool', 'it-camera', 'it-check', 'it-calendar'] - } - } - }; -}; */ +}; \ No newline at end of file diff --git a/stories/Documentation/Notification.mdx b/stories/Documentation/Notification.mdx index 3d862aadd..1a0f29429 100644 --- a/stories/Documentation/Notification.mdx +++ b/stories/Documentation/Notification.mdx @@ -40,11 +40,7 @@ La funzione `notify` ha la seguente firma: notify(title, message?, options?); ``` -### NotificationOptions - -Il dettaglio del tipo `NotificationOptions` è riportato di seguito: - - + # Stile notifiche From b60d08e27ab90970cdda180acea78dd63748f36e Mon Sep 17 00:00:00 2001 From: Virtute90 Date: Fri, 13 Sep 2024 11:54:40 +0200 Subject: [PATCH 2/2] test: update snap --- test/__snapshots__/Storybook.test.tsx.snap | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/__snapshots__/Storybook.test.tsx.snap b/test/__snapshots__/Storybook.test.tsx.snap index de247c8cf..8f9377493 100644 --- a/test/__snapshots__/Storybook.test.tsx.snap +++ b/test/__snapshots__/Storybook.test.tsx.snap @@ -7747,8 +7747,6 @@ exports[`Stories Snapshots Documentazione/Componenti/Notification FixedPositions `; -exports[`Stories Snapshots Documentazione/Componenti/Notification NotificationOptionsComponent_Fake 1`] = `
`; - exports[`Stories Snapshots Documentazione/Componenti/Notification States 1`] = `