Skip to content

Commit acd0166

Browse files
committed
fix playground
1 parent 684747d commit acd0166

File tree

1 file changed

+8
-23
lines changed

1 file changed

+8
-23
lines changed

stories/statusicon.stories.tsx

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,25 @@
1-
import { Meta, StoryObj } from '@storybook/react';
21
import React from 'react';
32
import {
43
StatusCluster,
54
StatusIcon,
65
} from '../src/lib/components/statusicon/StatusIcon.component';
76
import { Wrapper } from './common';
8-
import styled from 'styled-components';
97
import { Stack, Text } from '../src/lib';
108

11-
const TextWrapper = styled(Wrapper)`
12-
min-height: 0;
13-
`;
14-
15-
type Story = StoryObj<typeof StatusIcon>;
16-
179
export default {
1810
title: 'Components/statusIcon',
1911
component: StatusIcon,
20-
argTypes: {
21-
status: {
22-
control: {
23-
disable: true,
24-
},
25-
},
26-
children: {
27-
control: {
28-
disable: true,
29-
},
30-
},
31-
},
3212
};
3313

3414
export const Playground = {
35-
render: ({}: any) => {
15+
args: {
16+
status: 'healthy',
17+
},
18+
};
19+
export const Default = {
20+
render: ({}) => {
3621
return (
37-
<TextWrapper>
22+
<Wrapper>
3823
<Stack>
3924
<Text>Healthy status </Text>
4025
<StatusIcon status={StatusCluster.HEALTHY} />{' '}
@@ -51,7 +36,7 @@ export const Playground = {
5136
<Text>Unknown status </Text>
5237
<StatusIcon status={StatusCluster.UNKNOWN} />
5338
</Stack>
54-
</TextWrapper>
39+
</Wrapper>
5540
);
5641
},
5742
};

0 commit comments

Comments
 (0)