Skip to content

Commit 0a69c41

Browse files
authored
feat: add azure devops icon (#718)
1 parent 661fc85 commit 0a69c41

File tree

6 files changed

+33
-120
lines changed

6 files changed

+33
-120
lines changed

src/components/ContentCard.tsx

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import createIcon from './createIcon'
2+
export default createIcon(({ size, color, fullColor }) => {
3+
return (
4+
<svg
5+
xmlns="http://www.w3.org/2000/svg"
6+
width={size}
7+
height={size}
8+
viewBox="0 0 365 365"
9+
>
10+
<g
11+
fill={fullColor ? '#0078D7' : color}
12+
fillRule="evenodd"
13+
>
14+
<path d="M273.32 82.016 35.859 125.735v116.408L0 237.278V133.574l35.858-47.19 124.868-48.986L160.26 0zm0 0v193.776l-237.463-32.1 100.325 117.462v-43.595l137.137 43.595 90.033-74.456V65.16z"></path>
15+
</g>
16+
</svg>
17+
)
18+
})

src/icons.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export { default as ArrowRightIcon } from './components/icons/ArrowRightIcon'
1111
export { default as ArrowRightLeftIcon } from './components/icons/ArrowRightLeftIcon'
1212
export { default as ArrowTopRightIcon } from './components/icons/ArrowTopRightIcon'
1313
export { default as AwsLogoIcon } from './components/icons/AwsLogoIcon'
14+
export { default as AzureDevopsLogoIcon } from './components/icons/AzureDevopsLogoIcon'
1415
export { default as AzureLogoIcon } from './components/icons/AzureLogoIcon'
1516
export { default as BellIcon } from './components/icons/BellIcon'
1617
export { default as BitBucketIcon } from './components/icons/BitBucketIcon'

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)