File tree 1 file changed +9
-13
lines changed
site/src/components/Dashboard/DeploymentBanner 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change 1
- import { Story } from "@storybook/react" ;
1
+ import type { Meta , StoryObj } from "@storybook/react" ;
2
2
import { MockDeploymentStats } from "testHelpers/entities" ;
3
- import {
4
- DeploymentBannerView ,
5
- DeploymentBannerViewProps ,
6
- } from "./DeploymentBannerView" ;
3
+ import { DeploymentBannerView } from "./DeploymentBannerView" ;
7
4
8
- export default {
5
+ const meta : Meta < typeof DeploymentBannerView > = {
9
6
title : "components/DeploymentBannerView" ,
10
7
component : DeploymentBannerView ,
8
+ args : {
9
+ stats : MockDeploymentStats ,
10
+ } ,
11
11
} ;
12
12
13
- const Template : Story < DeploymentBannerViewProps > = ( args ) => (
14
- < DeploymentBannerView { ...args } />
15
- ) ;
13
+ export default meta ;
14
+ type Story = StoryObj < typeof DeploymentBannerView > ;
16
15
17
- export const Preview = Template . bind ( { } ) ;
18
- Preview . args = {
19
- stats : MockDeploymentStats ,
20
- } ;
16
+ export const Preview : Story = { } ;
You can’t perform that action at this time.
0 commit comments