File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ class Avatar extends PureComponent<AvatarPropTypes> {
224
224
225
225
getBadgeSize = ( ) => {
226
226
const badgeSize = _ . get ( this . props , 'badgeProps.size' , DEFAULT_BADGE_SIZE ) ;
227
-
227
+
228
228
if ( _ . isString ( badgeSize ) ) {
229
229
return BADGE_SIZES [ badgeSize ] || BADGE_SIZES [ DEFAULT_BADGE_SIZE ] ;
230
230
}
@@ -344,7 +344,7 @@ class Avatar extends PureComponent<AvatarPropTypes> {
344
344
< View
345
345
style = { [ this . getInitialsContainer ( ) , { backgroundColor} , hasImage && this . styles . initialsContainerWithInset ] }
346
346
>
347
- { ! _ . isUndefined ( label ) && < Text numberOfLines = { 1 } style = { [ { fontSize} , this . styles . initials , { color} ] } >
347
+ { ! _ . isUndefined ( label ) && < Text numberOfLines = { 1 } style = { [ { fontSize} , this . styles . initials , { color} ] } testID = { ` ${ testID } .label` } >
348
348
{ label }
349
349
</ Text > }
350
350
</ View >
You can’t perform that action at this time.
0 commit comments