File tree 1 file changed +8
-23
lines changed
1 file changed +8
-23
lines changed Original file line number Diff line number Diff line change 1
- import { Meta , StoryObj } from '@storybook/react' ;
2
1
import React from 'react' ;
3
2
import {
4
3
StatusCluster ,
5
4
StatusIcon ,
6
5
} from '../src/lib/components/statusicon/StatusIcon.component' ;
7
6
import { Wrapper } from './common' ;
8
- import styled from 'styled-components' ;
9
7
import { Stack , Text } from '../src/lib' ;
10
8
11
- const TextWrapper = styled ( Wrapper ) `
12
- min-height: 0;
13
- ` ;
14
-
15
- type Story = StoryObj < typeof StatusIcon > ;
16
-
17
9
export default {
18
10
title : 'Components/statusIcon' ,
19
11
component : StatusIcon ,
20
- argTypes : {
21
- status : {
22
- control : {
23
- disable : true ,
24
- } ,
25
- } ,
26
- children : {
27
- control : {
28
- disable : true ,
29
- } ,
30
- } ,
31
- } ,
32
12
} ;
33
13
34
14
export const Playground = {
35
- render : ( { } : any ) => {
15
+ args : {
16
+ status : 'healthy' ,
17
+ } ,
18
+ } ;
19
+ export const Default = {
20
+ render : ( { } ) => {
36
21
return (
37
- < TextWrapper >
22
+ < Wrapper >
38
23
< Stack >
39
24
< Text > Healthy status </ Text >
40
25
< StatusIcon status = { StatusCluster . HEALTHY } /> { ' ' }
@@ -51,7 +36,7 @@ export const Playground = {
51
36
< Text > Unknown status </ Text >
52
37
< StatusIcon status = { StatusCluster . UNKNOWN } />
53
38
</ Stack >
54
- </ TextWrapper >
39
+ </ Wrapper >
55
40
) ;
56
41
} ,
57
42
} ;
You can’t perform that action at this time.
0 commit comments