From f0a084f833cb6f876cee6c4fe177a5927aabdd2b Mon Sep 17 00:00:00 2001 From: Michal <mwargan@gmail.com> Date: Thu, 7 Mar 2024 16:01:36 +0000 Subject: [PATCH] refactor: footer test decorator --- src/stories/Footer.stories.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/stories/Footer.stories.ts b/src/stories/Footer.stories.ts index 4ba16c2..fb0fe3a 100644 --- a/src/stories/Footer.stories.ts +++ b/src/stories/Footer.stories.ts @@ -9,13 +9,11 @@ const meta: Meta<typeof PageFooter> = { */ title: "Components/Footer", component: PageFooter, - render: (args: any) => ({ - components: { PageFooter }, - setup() { - return { args }; - }, - template: "<main></main><PageFooter />", - }), + decorators: [ + () => ({ + template: "<main></main><story />", + }), + ], parameters: { // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout layout: "fullscreen",