Skip to content

Commit

Permalink
refactor: footer test decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
mwargan committed Mar 7, 2024
1 parent eba6a5c commit f0a084f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/stories/Footer.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f0a084f

Please sign in to comment.