@@ -41,12 +41,12 @@ const AvatarWrapper = styled(Avatar) <AvatarProps & { $cursorPointer?: boolean,
4141  cursor: ${ ( props )  =>  props . $cursorPointer  ? 'pointer'  : '' }  
4242` ; 
4343
44- const  Wrapper  =  styled . div  < {  iconSize : number ,  labelPosition : string , $style : AvatarContainerStyleType } > ` 
44+ const  Wrapper  =  styled . div  < {  $ iconSizenumber ,  $ labelPositionstring , $style : AvatarContainerStyleType } > ` 
4545display: flex; 
4646width: 100%; 
4747height: 100%; 
4848align-items: center; 
49- flex-direction: ${ ( props )  =>  props . labelPosition  ===  'left'  ? 'row'  : 'row-reverse' }  
49+ flex-direction: ${ ( props )  =>  props . $ labelPosition===  'left'  ? 'row'  : 'row-reverse' }  
5050${ ( props )  =>  { 
5151    return  (  
5252      props . $style  &&  {  
@@ -57,14 +57,14 @@ ${(props) => {
5757  } }  
5858` 
5959
60- const  LabelWrapper  =  styled . div < {  iconSize : number ,  alignmentPosition : string  } > ` 
61- width: calc(100% - ${ ( props )  =>  props . iconSize }  
60+ const  LabelWrapper  =  styled . div < {  $ iconSizenumber ,  $ alignmentPositionstring  } > ` 
61+ width: calc(100% - ${ ( props )  =>  props . $ iconSize}  
6262display: flex; 
6363padding-left: 5px; 
6464padding-right: 5px; 
6565flex-direction: column; 
6666justify-content: flex-end; 
67- align-items: ${ ( props )  =>  props . alignmentPosition  ===  'left'  ? 'flex-start'  : 'flex-end' }  
67+ align-items: ${ ( props )  =>  props . $ alignmentPosition===  'left'  ? 'flex-start'  : 'flex-end' }  
6868` 
6969const  LabelSpan  =  styled . span < {  $style :AvatarLabelStyleType  } > ` 
7070max-width: 100%; 
@@ -166,7 +166,7 @@ const AvatarView = (props: RecordConstructorToView<typeof childrenMap>) => {
166166      disabled = { ! props . enableDropdownMenu } 
167167      dropdownRender = { ( )  =>  menu } 
168168    > 
169-       < Wrapper  iconSize = { props . iconSize }  labelPosition = { props . labelPosition }  $style = { props . style } > 
169+       < Wrapper  $ iconSize= { props . iconSize }  $ labelPosition= { props . labelPosition }  $style = { props . style } > 
170170        < Badge 
171171          count = { props . badgeCount . value } 
172172          dot = { props . badgeType  ===  'dot' } 
@@ -187,7 +187,7 @@ const AvatarView = (props: RecordConstructorToView<typeof childrenMap>) => {
187187            { title . value } 
188188          </ AvatarWrapper > 
189189        </ Badge > 
190-         < LabelWrapper  iconSize = { props . iconSize }  alignmentPosition = { props . alignmentPosition } > 
190+         < LabelWrapper  $ iconSize= { props . iconSize }  $ alignmentPosition= { props . alignmentPosition } > 
191191          < LabelSpan  $style = { props . labelStyle } > { props . avatarLabel . value } </ LabelSpan > 
192192          < CaptionSpan  $style = { props . captionStyle } > { props . avatarCatption . value } </ CaptionSpan > 
193193        </ LabelWrapper > 
0 commit comments