Skip to content

Commit e211bdf

Browse files
committed
chore: remove ant-icons as dependency * 2
1 parent 6c2cd59 commit e211bdf

File tree

4 files changed

+13
-16
lines changed

4 files changed

+13
-16
lines changed

src/components/content/Result/Result.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {
2-
CheckCircleFilled,
3-
CloseCircleFilled,
4-
InfoCircleFilled,
5-
} from '@ant-design/icons';
2+
IconCircleCheckFilled,
3+
IconCircleXFilled,
4+
IconInfoCircleFilled,
5+
} from '@tabler/icons-react';
66
import { ComponentType, forwardRef, ReactNode, useMemo } from 'react';
77

88
import { WarningFilledIcon } from '../../../icons';
@@ -117,15 +117,15 @@ const Container = tasty({
117117
const statusIconMap: StatusIconMap = {
118118
success: {
119119
color: 'success',
120-
component: CheckCircleFilled,
120+
component: IconCircleCheckFilled,
121121
},
122122
error: {
123123
color: 'danger',
124-
component: CloseCircleFilled,
124+
component: IconCircleXFilled,
125125
},
126126
info: {
127127
color: 'purple',
128-
component: InfoCircleFilled,
128+
component: IconInfoCircleFilled,
129129
},
130130
warning: {
131131
color: 'note',

src/components/form/FieldWrapper/FieldWrapper.stories.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { DollarCircleFilled } from '@ant-design/icons';
21
import { Meta, StoryFn } from '@storybook/react';
2+
import { IconCoin } from '@tabler/icons-react';
33

44
import { Button } from '../../actions/index';
55
import { Text } from '../../content/Text';
@@ -110,9 +110,7 @@ WithSuffixExtraAndTooltip.args = {
110110

111111
export const WithButtonSuffix = Template.bind({});
112112
WithButtonSuffix.args = {
113-
labelSuffix: (
114-
<Button size="small" icon={<DollarCircleFilled />} placeSelf="center" />
115-
),
113+
labelSuffix: <Button size="small" icon={<IconCoin />} placeSelf="center" />,
116114
};
117115

118116
export const WithButtonSuffixAndTooltip = Template.bind({});
@@ -123,7 +121,7 @@ WithButtonSuffixAndTooltip.args = {
123121
height="3x"
124122
type="clear"
125123
size="small"
126-
icon={<DollarCircleFilled />}
124+
icon={<IconCoin />}
127125
placeSelf="center"
128126
/>
129127
),

src/stories/Result.docs.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Meta } from '@storybook/blocks';
22
import { Story, Canvas, Controls } from '@storybook/blocks';
3-
import { BulbFilled, LockFilled } from '@ant-design/icons';
43
import * as ResultStories from './Result.stories.tsx';
54

65
import { baseProps } from './lists/baseProps';

src/stories/Result.stories.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { BulbFilled, LockFilled } from '@ant-design/icons';
21
import { StoryFn } from '@storybook/react';
2+
import { IconBulb, IconLock } from '@tabler/icons-react';
33

44
import {
55
Button,
@@ -90,7 +90,7 @@ export const CustomIcon = {
9090
fontSize: '10x',
9191
}}
9292
>
93-
<LockFilled />
93+
<IconLock />
9494
</Element>
9595
),
9696

@@ -120,7 +120,7 @@ export const CustomTitle = {
120120
fontSize: '12x',
121121
}}
122122
>
123-
<BulbFilled />
123+
<IconBulb />
124124
</Element>
125125
),
126126

0 commit comments

Comments
 (0)