mirror of
https://github.com/IT4Change/boilerplate-frontend.git
synced 2025-12-13 07:35:53 +00:00
fix all stories using SBComp
This commit is contained in:
parent
3d28141447
commit
eaf361c31d
@ -1,3 +1,5 @@
|
||||
import { SBComp } from '#types/SBComp'
|
||||
|
||||
import ExampleButton from './ExampleButton.vue'
|
||||
|
||||
import type { Meta, StoryObj } from '@storybook/vue3'
|
||||
@ -5,8 +7,7 @@ import type { Meta, StoryObj } from '@storybook/vue3'
|
||||
// More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
|
||||
const meta = {
|
||||
title: 'Example/Button',
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
component: ExampleButton,
|
||||
component: ExampleButton as SBComp,
|
||||
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/vue/writing-docs/autodocs
|
||||
tags: ['autodocs'],
|
||||
argTypes: {
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
import { SBComp } from '#types/SBComp'
|
||||
|
||||
import ExampleHeader from './ExampleHeader.vue'
|
||||
|
||||
import type { Meta, StoryObj } from '@storybook/vue3'
|
||||
@ -8,8 +10,7 @@ const meta = {
|
||||
* to learn how to generate automatic titles
|
||||
*/
|
||||
title: 'Example/Header',
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
component: ExampleHeader,
|
||||
component: ExampleHeader as SBComp,
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
render: (args: any) => ({
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
|
||||
@ -1,13 +1,14 @@
|
||||
import { within, userEvent } from '@storybook/testing-library'
|
||||
|
||||
import { SBComp } from '#types/SBComp'
|
||||
|
||||
import ExamplePage from './ExamplePage.vue'
|
||||
|
||||
import type { Meta, StoryObj } from '@storybook/vue3'
|
||||
|
||||
const meta = {
|
||||
title: 'Example/Page',
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
component: ExamplePage,
|
||||
component: ExamplePage as SBComp,
|
||||
render: () => ({
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
components: { ExamplePage },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user