@@ -41,12 +41,12 @@ const AvatarWrapper = styled(Avatar) <AvatarProps & { $cursorPointer?: boolean,
41
41
cursor: ${ ( props ) => props . $cursorPointer ? 'pointer' : '' } ;
42
42
` ;
43
43
44
- const Wrapper = styled . div < { iconSize : number , labelPosition : string , $style : AvatarContainerStyleType } > `
44
+ const Wrapper = styled . div < { $ iconSize : number , $ labelPosition : string , $style : AvatarContainerStyleType } > `
45
45
display: flex;
46
46
width: 100%;
47
47
height: 100%;
48
48
align-items: center;
49
- flex-direction: ${ ( props ) => props . labelPosition === 'left' ? 'row' : 'row-reverse' } ;
49
+ flex-direction: ${ ( props ) => props . $ labelPosition === 'left' ? 'row' : 'row-reverse' } ;
50
50
${ ( props ) => {
51
51
return (
52
52
props . $style && {
@@ -57,14 +57,14 @@ ${(props) => {
57
57
} }
58
58
`
59
59
60
- const LabelWrapper = styled . div < { iconSize : number , alignmentPosition : string } > `
61
- width: calc(100% - ${ ( props ) => props . iconSize } px);
60
+ const LabelWrapper = styled . div < { $ iconSize : number , $ alignmentPosition : string } > `
61
+ width: calc(100% - ${ ( props ) => props . $ iconSize} px);
62
62
display: flex;
63
63
padding-left: 5px;
64
64
padding-right: 5px;
65
65
flex-direction: column;
66
66
justify-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' } ;
68
68
`
69
69
const LabelSpan = styled . span < { $style :AvatarLabelStyleType } > `
70
70
max-width: 100%;
@@ -166,7 +166,7 @@ const AvatarView = (props: RecordConstructorToView<typeof childrenMap>) => {
166
166
disabled = { ! props . enableDropdownMenu }
167
167
dropdownRender = { ( ) => menu }
168
168
>
169
- < Wrapper iconSize = { props . iconSize } labelPosition = { props . labelPosition } $style = { props . style } >
169
+ < Wrapper $ iconSize= { props . iconSize } $ labelPosition= { props . labelPosition } $style = { props . style } >
170
170
< Badge
171
171
count = { props . badgeCount . value }
172
172
dot = { props . badgeType === 'dot' }
@@ -187,7 +187,7 @@ const AvatarView = (props: RecordConstructorToView<typeof childrenMap>) => {
187
187
{ title . value }
188
188
</ AvatarWrapper >
189
189
</ Badge >
190
- < LabelWrapper iconSize = { props . iconSize } alignmentPosition = { props . alignmentPosition } >
190
+ < LabelWrapper $ iconSize= { props . iconSize } $ alignmentPosition= { props . alignmentPosition } >
191
191
< LabelSpan $style = { props . labelStyle } > { props . avatarLabel . value } </ LabelSpan >
192
192
< CaptionSpan $style = { props . captionStyle } > { props . avatarCatption . value } </ CaptionSpan >
193
193
</ LabelWrapper >
0 commit comments