diff --git a/libs/react-components/src/elements/Avatar.tsx b/libs/react-components/src/elements/Avatar.tsx
index b75aa3df2c..9af329e6d9 100644
--- a/libs/react-components/src/elements/Avatar.tsx
+++ b/libs/react-components/src/elements/Avatar.tsx
@@ -8,21 +8,21 @@ interface Props {
element?: IAvatarElement;
}
-const AvatarElement = ({ element, author, bgColor }: Props) => (
-
-
- {author[0]}
-
-
-);
+const AvatarElement = ({ element, author, bgColor }: Props) => {
+ let avatar: JSX.Element;
+ const sx = {
+ width: 26,
+ height: 26,
+ fontSize: '0.75rem',
+ mt: '-2px',
+ bgcolor: element?.url ? 'transparent' : bgColor
+ };
+ if (element?.url) {
+ avatar = ;
+ } else {
+ avatar = {author[0]};
+ }
+ return {avatar};
+};
export { AvatarElement };