File tree 1 file changed +17
-15
lines changed
site/src/components/Dashboard/ServiceBanner 1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change 1
- import { Story } from "@storybook/react" ;
2
- import { ServiceBannerView , ServiceBannerViewProps } from "./ServiceBannerView" ;
1
+ import type { Meta , StoryObj } from "@storybook/react" ;
3
2
4
- export default {
3
+ import { ServiceBannerView } from "./ServiceBannerView" ;
4
+
5
+ const meta : Meta < typeof ServiceBannerView > = {
5
6
title : "components/ServiceBannerView" ,
6
7
component : ServiceBannerView ,
7
8
} ;
8
9
9
- const Template : Story < ServiceBannerViewProps > = ( args ) => (
10
- < ServiceBannerView { ...args } />
11
- ) ;
10
+ export default meta ;
11
+ type Story = StoryObj < typeof ServiceBannerView > ;
12
12
13
- export const Production = Template . bind ( { } ) ;
14
- Production . args = {
15
- message : "weeeee" ,
16
- backgroundColor : "#FFFFFF" ,
13
+ export const Production : Story = {
14
+ args : {
15
+ message : "weeeee" ,
16
+ backgroundColor : "#FFFFFF" ,
17
+ } ,
17
18
} ;
18
19
19
- export const Preview = Template . bind ( { } ) ;
20
- Preview . args = {
21
- message : "weeeee" ,
22
- backgroundColor : "#000000" ,
23
- preview : true ,
20
+ export const Preview : Story = {
21
+ args : {
22
+ message : "weeeee" ,
23
+ backgroundColor : "#000000" ,
24
+ preview : true ,
25
+ } ,
24
26
} ;
You can’t perform that action at this time.
0 commit comments