Skip to content

Commit c8baef6

Browse files
committed
remove deprecated ContentCard
1 parent 7bebc14 commit c8baef6

File tree

4 files changed

+14
-120
lines changed

4 files changed

+14
-120
lines changed

src/components/ContentCard.tsx

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ export { default as Code } from './components/Code'
4646
export { default as CodeEditor } from './components/CodeEditor'
4747
export { default as Codeline } from './components/Codeline'
4848
export { ComboBox } from './components/ComboBox'
49-
export { default as ContentCard } from './components/ContentCard'
5049
export { default as Date } from './components/Date'
5150
export { default as Divider } from './components/Divider'
5251
export { default as EmptyState } from './components/EmptyState'

src/stories/ContentCard.stories.tsx

Lines changed: 0 additions & 82 deletions
This file was deleted.

src/stories/Tab.stories.tsx

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { useState } from 'react'
33

44
import ErrorIcon from '../components/icons/ErrorIcon'
55

6-
import ContentCard from '../components/ContentCard'
76
import Tab from '../components/Tab'
87
import SubTab from '../components/SubTab'
8+
import Card from '../components/Card'
99

1010
export default {
1111
title: 'Tab',
@@ -182,18 +182,25 @@ function SubTabTemplate(args: any) {
182182
gap="large"
183183
>
184184
<SubTabs {...args} />
185-
<ContentCard>
185+
<Card style={contentCardStyle}>
186186
<SubTabs {...args} />
187-
</ContentCard>
188-
<ContentCard fillLevel={2}>
187+
</Card>
188+
<Card style={contentCardStyle}>
189189
<SubTabs {...args} />
190-
</ContentCard>
191-
<ContentCard fillLevel={3}>
190+
</Card>
191+
<Card style={contentCardStyle}>
192192
<SubTabs {...args} />
193-
</ContentCard>
193+
</Card>
194194
</Flex>
195195
)
196196
}
197+
const contentCardStyle = {
198+
padding: 32,
199+
display: 'flex',
200+
flexDirection: 'column',
201+
alignItems: 'center',
202+
justifyContent: 'center',
203+
}
197204

198205
export const Subtab = SubTabTemplate.bind({})
199206

0 commit comments

Comments
 (0)