Skip to content

Commit 823cae5

Browse files
committed
fix(Layout): stories
1 parent cf866e4 commit 823cae5

File tree

1 file changed

+6
-30
lines changed

1 file changed

+6
-30
lines changed

src/components/content/Layout/Layout.stories.tsx

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { useState } from 'react';
33
import { Button, ItemButton } from '../../actions';
44
import { Block } from '../../Block';
55
import { Space } from '../../layout/Space';
6+
import { Card } from '../Card/Card';
67
import { Text } from '../Text';
78
import { Title } from '../Title';
89

@@ -247,39 +248,14 @@ export const GridLayoutExample: Story = {
247248
<GridLayout
248249
height="100dvh"
249250
columns="repeat(2, 1fr)"
250-
rows="auto 1fr"
251+
rows="auto auto 1fr"
251252
gap="2x"
252253
padding="2x"
253254
>
254-
<Layout.Header title="Grid Dashboard" />
255-
<div
256-
style={{
257-
gridColumn: '1 / 3',
258-
background: '#f5f5f5',
259-
padding: '16px',
260-
borderRadius: '8px',
261-
}}
262-
>
263-
<Text>Full-width card</Text>
264-
</div>
265-
<div
266-
style={{
267-
background: '#f5f5f5',
268-
padding: '16px',
269-
borderRadius: '8px',
270-
}}
271-
>
272-
<Text>Left card</Text>
273-
</div>
274-
<div
275-
style={{
276-
background: '#f5f5f5',
277-
padding: '16px',
278-
borderRadius: '8px',
279-
}}
280-
>
281-
<Text>Right card</Text>
282-
</div>
255+
<Layout.Header gridColumn="1 / 3" title="Grid Dashboard" />
256+
<Card gridColumn="1 / 3">Full-width card</Card>
257+
<Card>Left card</Card>
258+
<Card>Right card</Card>
283259
</GridLayout>
284260
),
285261
};

0 commit comments

Comments
 (0)