From bd49eddeca3261645c01a64e89d9dc566a2c52e1 Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Tue, 13 Apr 2021 23:16:31 -0400 Subject: [PATCH] Add ^set[A-Z].* pattern match to actions --- src/components/AppView/AppView.stories.mdx | 31 +++++++++++++++------- storybook/preview.js | 2 +- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/src/components/AppView/AppView.stories.mdx b/src/components/AppView/AppView.stories.mdx index 9d40fcd..2c2bec6 100644 --- a/src/components/AppView/AppView.stories.mdx +++ b/src/components/AppView/AppView.stories.mdx @@ -1,17 +1,30 @@ -import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks'; -import AppView from './AppView'; +import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks'; +import AppView from './AppView'; -The primary view for webqueue2. + - +The primary view for webqueue2. This is just a container. -# AppView without queue selected +export const Template = (args) => - - {args => } + alert("Function not set for docs."), + }} + > + {args => } - - + \ No newline at end of file diff --git a/storybook/preview.js b/storybook/preview.js index f095715..91307fb 100644 --- a/storybook/preview.js +++ b/storybook/preview.js @@ -59,7 +59,7 @@ export const decorators = [ */ export const parameters = { // Match arg names starting with on and followed by at least one capital letter for actions. - actions: { argTypesRegex: "^on[A-Z].*" }, + actions: { argTypesRegex: "^on|set[A-Z].*" }, options: { storySort: { method: 'alphabetical',