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";
147147import weights from '../defs/${ component } '
148148
149149function ${ componentName } ({...props }: IconProps) {
150- return (<IconBase {...props} weights={weights} />)
150+ return (<IconBase {...props} weights={weights} name=" ${ icon } " />)
151151}
152152
153153export default ${ componentName } ` ;
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ interface IconBaseProps extends IconProps {
77 IconWeight ,
88 ReactElement | FC < { duotoneColor ?: string ; duotoneOpacity ?: number } >
99 > ;
10+ name : string ;
1011}
1112
1213function IconBase ( {
@@ -19,6 +20,7 @@ function IconBase({
1920 duotoneOpacity,
2021 title,
2122 titleId,
23+ name,
2224 weights,
2325 ...props
2426} : IconBaseProps ) {
@@ -43,8 +45,8 @@ function IconBase({
4345 } ) ,
4446 } ,
4547 ] }
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 } ` }
4850 fill = "currentColor"
4951 viewBox = "0 0 256 256"
5052 width = { size ?? contextSize }
You can’t perform that action at this time.
0 commit comments