File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
packages/react-file-input/src Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 6
6
FileInputStyleCardBoxInfoWarp ,
7
7
FileInputStyleCardActionsRemoveWarp ,
8
8
} from './style' ;
9
- import Icon from '@uiw/react-icon' ;
9
+ import { IconStyleBase } from '@uiw/react-icon' ;
10
+ import { Delete , Search } from '@uiw/icons' ;
10
11
import { FileInputListProps } from './' ;
11
12
12
13
const Card = ( props : FileInputListProps ) => {
@@ -43,15 +44,15 @@ const Card = (props: FileInputListProps) => {
43
44
className = { `${ prefixCls } -actions-remove` }
44
45
onClick = { ( ) => onPreview ?.( item ) }
45
46
>
46
- < Icon type = "search" style = { { color : '#fff' , fontSize : 16 } } />
47
+ < IconStyleBase as = { Search } style = { { color : '#fff' , fontSize : 16 } } />
47
48
</ FileInputStyleCardActionsRemoveWarp >
48
49
) }
49
50
{ showFileIcon ?. showRemoveIcon && (
50
51
< FileInputStyleCardActionsRemoveWarp
51
52
className = { `${ prefixCls } -actions-remove` }
52
53
onClick = { ( ) => onRemove ?.( index ) }
53
54
>
54
- < Icon type = "delete" style = { { color : '#fff' , fontSize : 16 } } />
55
+ < IconStyleBase as = { Delete } style = { { color : '#fff' , fontSize : 16 } } />
55
56
</ FileInputStyleCardActionsRemoveWarp >
56
57
) }
57
58
</ FileInputStyleCardActionsWarp >
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import Icon from '@uiw/react-icon' ;
2
+ import { IconStyleBase } from '@uiw/react-icon' ;
3
+ import { Delete , Search } from '@uiw/icons' ;
3
4
import { FileInputListProps } from './' ;
4
5
import {
5
6
FileInputStyleListWarp ,
@@ -56,7 +57,7 @@ const Picture = (props: FileInputListProps) => {
56
57
className = { `${ prefixCls } -actions-search` }
57
58
onClick = { ( ) => onPreview ?.( item ) }
58
59
>
59
- < Icon type = "search" style = { { color : '#fff' , fontSize : 16 } } />
60
+ < IconStyleBase as = { Search } style = { { color : '#fff' , fontSize : 16 } } />
60
61
</ FileInputStyleListActionsSearchWarp >
61
62
</ FileInputStyleListActionsWarp >
62
63
) }
@@ -70,7 +71,7 @@ const Picture = (props: FileInputListProps) => {
70
71
className = { `${ prefixCls } -${ uploadType } -icon` }
71
72
onClick = { ( ) => onRemove ?.( index ) }
72
73
>
73
- < Icon type = "delete" style = { { color : '#999' } } />
74
+ < IconStyleBase as = { Delete } style = { { color : '#999' } } />
74
75
</ FileInputStyleListUploadIconTypeWarp >
75
76
) }
76
77
</ FileInputStyleListUploadTypeWarp >
You can’t perform that action at this time.
0 commit comments