This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree 1 file changed +5
-4
lines changed
src/components/views/avatars
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ const BaseAvatar = (props: IProps) => {
99
99
defaultToInitialLetter = true ,
100
100
onClick,
101
101
inputRef,
102
+ className,
102
103
...otherProps
103
104
} = props ;
104
105
@@ -138,7 +139,7 @@ const BaseAvatar = (props: IProps) => {
138
139
< AccessibleButton
139
140
{ ...otherProps }
140
141
element = "span"
141
- className = "mx_BaseAvatar"
142
+ className = { classNames ( "mx_BaseAvatar" , className ) }
142
143
onClick = { onClick }
143
144
inputRef = { inputRef }
144
145
>
@@ -149,7 +150,7 @@ const BaseAvatar = (props: IProps) => {
149
150
} else {
150
151
return (
151
152
< span
152
- className = "mx_BaseAvatar"
153
+ className = { classNames ( "mx_BaseAvatar" , className ) }
153
154
ref = { inputRef }
154
155
{ ...otherProps }
155
156
role = "presentation"
@@ -164,7 +165,7 @@ const BaseAvatar = (props: IProps) => {
164
165
if ( onClick !== null ) {
165
166
return (
166
167
< AccessibleButton
167
- className = "mx_BaseAvatar mx_BaseAvatar_image"
168
+ className = { classNames ( "mx_BaseAvatar mx_BaseAvatar_image" , className ) }
168
169
element = 'img'
169
170
src = { imageUrl }
170
171
onClick = { onClick }
@@ -180,7 +181,7 @@ const BaseAvatar = (props: IProps) => {
180
181
} else {
181
182
return (
182
183
< img
183
- className = "mx_BaseAvatar mx_BaseAvatar_image"
184
+ className = { classNames ( "mx_BaseAvatar mx_BaseAvatar_image" , className ) }
184
185
src = { imageUrl }
185
186
onError = { onError }
186
187
style = { {
You can’t perform that action at this time.
0 commit comments