File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ import IconBase from "../lib/icon-base";
147
147
import weights from '../defs/${ component } '
148
148
149
149
function ${ componentName } ({...props }: IconProps) {
150
- return (<IconBase {...props} weights={weights} />)
150
+ return (<IconBase {...props} weights={weights} name=" ${ icon } " />)
151
151
}
152
152
153
153
export default ${ componentName } ` ;
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ interface IconBaseProps extends IconProps {
7
7
IconWeight ,
8
8
ReactElement | FC < { duotoneColor ?: string ; duotoneOpacity ?: number } >
9
9
> ;
10
+ name : string ;
10
11
}
11
12
12
13
function IconBase ( {
@@ -19,6 +20,7 @@ function IconBase({
19
20
duotoneOpacity,
20
21
title,
21
22
titleId,
23
+ name,
22
24
weights,
23
25
...props
24
26
} : IconBaseProps ) {
@@ -43,8 +45,8 @@ function IconBase({
43
45
} ) ,
44
46
} ,
45
47
] }
46
- className = { `acorn -${ weight } __svg-icon-phosphor` }
47
- testID = { props . testID ?? ' phosphor-react-native-acorn-bold' }
48
+ className = { `${ name } -${ weight } __svg-icon-phosphor` }
49
+ testID = { props . testID ?? ` phosphor-react-native-${ name } - ${ weight } ` }
48
50
fill = "currentColor"
49
51
viewBox = "0 0 256 256"
50
52
width = { size ?? contextSize }
You can’t perform that action at this time.
0 commit comments