Skip to content

Commit e738c7a

Browse files
committed
fix(Result): icon size
1 parent 383099f commit e738c7a

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

src/components/content/Result/Result.tsx

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import {
2+
IconAlertTriangleFilled,
23
IconCircleCheckFilled,
34
IconCircleXFilled,
45
IconInfoCircleFilled,
56
} from '@tabler/icons-react';
67
import { ComponentType, forwardRef, ReactNode, useMemo } from 'react';
78

8-
import { WarningFilledIcon } from '../../../icons';
9+
import { Icon } from '../../../icons';
910
import {
1011
BaseProps,
1112
CONTAINER_STYLES,
@@ -117,19 +118,35 @@ const Container = tasty({
117118
const statusIconMap: StatusIconMap = {
118119
success: {
119120
color: 'success',
120-
component: IconCircleCheckFilled,
121+
component: () => (
122+
<Icon size={48}>
123+
<IconCircleCheckFilled />
124+
</Icon>
125+
),
121126
},
122127
error: {
123128
color: 'danger',
124-
component: IconCircleXFilled,
129+
component: () => (
130+
<Icon size={48}>
131+
<IconCircleXFilled />
132+
</Icon>
133+
),
125134
},
126135
info: {
127136
color: 'purple',
128-
component: IconInfoCircleFilled,
137+
component: () => (
138+
<Icon size={48}>
139+
<IconInfoCircleFilled />
140+
</Icon>
141+
),
129142
},
130143
warning: {
131144
color: 'note',
132-
component: WarningFilledIcon,
145+
component: () => (
146+
<Icon size={48}>
147+
<IconAlertTriangleFilled />
148+
</Icon>
149+
),
133150
},
134151
404: {
135152
color: 'purple',

0 commit comments

Comments
 (0)