File tree Expand file tree Collapse file tree 1 file changed +22
-5
lines changed
src/components/content/Result Expand file tree Collapse file tree 1 file changed +22
-5
lines changed Original file line number Diff line number Diff line change 11import {
2+ IconAlertTriangleFilled ,
23 IconCircleCheckFilled ,
34 IconCircleXFilled ,
45 IconInfoCircleFilled ,
56} from '@tabler/icons-react' ;
67import { ComponentType , forwardRef , ReactNode , useMemo } from 'react' ;
78
8- import { WarningFilledIcon } from '../../../icons' ;
9+ import { Icon } from '../../../icons' ;
910import {
1011 BaseProps ,
1112 CONTAINER_STYLES ,
@@ -117,19 +118,35 @@ const Container = tasty({
117118const 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' ,
You can’t perform that action at this time.
0 commit comments