From 135cd63eaa4fbd2adc12a440ce6a6d5563f97788 Mon Sep 17 00:00:00 2001 From: jonniebigodes Date: Tue, 28 Feb 2023 13:58:16 +0000 Subject: [PATCH] Fix the snippets in the Migration guide --- MIGRATION.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/MIGRATION.md b/MIGRATION.md index 1dfb3b84e5aa..c349aa2bd4e5 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -327,7 +327,9 @@ The `Preview` type will come from the Storybook package for the **renderer** you import { Preview } from '@storybook/react'; const preview: Preview = { - actions: { argTypesRegex: '^on[A-Z].*' }, + parameters: { + actions: { argTypesRegex: '^on[A-Z].*' }, + }, }; export default preview; ``` @@ -337,7 +339,9 @@ In JavaScript projects using `preview.js`, it's also possible to use the `Previe ```ts /** @type { import('@storybook/react').Preview } */ const preview: Preview = { - actions: { argTypesRegex: '^on[A-Z].*' }, + parameters: { + actions: { argTypesRegex: '^on[A-Z].*' }, + }, }; export default preview; ```