@@ -7,15 +7,15 @@ import {getDelegateAccountIDFromReportAction} from '@libs/ReportActionsUtils';
77import type { OptionData } from '@libs/ReportUtils' ;
88import CONST from '@src/CONST' ;
99
10- type OptionRowAvatarProps = {
10+ type AvatarProps = {
1111 optionItem : OptionData ;
1212 isInFocusMode : boolean ;
1313 subscriptAvatarBorderColor : ColorValue ;
1414 secondaryAvatarBackgroundColor : ColorValue ;
1515 singleAvatarContainerStyle : ViewStyle [ ] ;
1616} ;
1717
18- function OptionRowAvatarInner ( { optionItem, isInFocusMode, subscriptAvatarBorderColor, secondaryAvatarBackgroundColor, singleAvatarContainerStyle} : OptionRowAvatarProps ) {
18+ function AvatarInner ( { optionItem, isInFocusMode, subscriptAvatarBorderColor, secondaryAvatarBackgroundColor, singleAvatarContainerStyle} : AvatarProps ) {
1919 const personalDetails = usePersonalDetails ( ) ;
2020
2121 const delegateAccountID = getDelegateAccountIDFromReportAction ( optionItem ?. parentReportAction ) ;
@@ -64,15 +64,15 @@ function OptionRowAvatarInner({optionItem, isInFocusMode, subscriptAvatarBorderC
6464 ) ;
6565}
6666
67- OptionRowAvatarInner . displayName = 'OptionRowAvatarInner ' ;
67+ AvatarInner . displayName = 'OptionRow.AvatarInner ' ;
6868
69- function OptionRowAvatar ( { optionItem, isInFocusMode, subscriptAvatarBorderColor, secondaryAvatarBackgroundColor, singleAvatarContainerStyle} : OptionRowAvatarProps ) {
69+ function Avatar ( { optionItem, isInFocusMode, subscriptAvatarBorderColor, secondaryAvatarBackgroundColor, singleAvatarContainerStyle} : AvatarProps ) {
7070 // Bail out before subscribing to personal details when the row has no avatar to render.
7171 if ( ! optionItem . icons ?. length || ! optionItem . icons . at ( 0 ) ) {
7272 return null ;
7373 }
7474 return (
75- < OptionRowAvatarInner
75+ < AvatarInner
7676 optionItem = { optionItem }
7777 isInFocusMode = { isInFocusMode }
7878 subscriptAvatarBorderColor = { subscriptAvatarBorderColor }
@@ -82,6 +82,6 @@ function OptionRowAvatar({optionItem, isInFocusMode, subscriptAvatarBorderColor,
8282 ) ;
8383}
8484
85- OptionRowAvatar . displayName = 'OptionRowAvatar ' ;
85+ Avatar . displayName = 'OptionRow.Avatar ' ;
8686
87- export default OptionRowAvatar ;
87+ export default Avatar ;
0 commit comments