mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-15 11:40:29 +03:00
Add optoins to change room visibility
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
07b1fe8e47
commit
d02e8dcd4e
6 changed files with 156 additions and 7 deletions
|
|
@ -16,7 +16,10 @@ function Avatar({
|
|||
if (size === 'small') textSize = 'b1';
|
||||
if (size === 'extra-small') textSize = 'b3';
|
||||
|
||||
useEffect(() => updateImage(imageSrc), [imageSrc]);
|
||||
useEffect(() => {
|
||||
updateImage(imageSrc);
|
||||
return () => updateImage(null);
|
||||
}, [imageSrc]);
|
||||
|
||||
return (
|
||||
<div className={`avatar-container avatar-container__${size} noselect`}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue