From 1fbd838988bc4133e3d8a07b3266e838f15aea58 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Tue, 5 Jul 2022 09:50:30 +0200 Subject: [PATCH] change(ui) - assist list show active status --- .../shared/SessionItem/SessionItem.tsx | 2 +- frontend/app/components/ui/Avatar/Avatar.js | 28 +++++++++++-------- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/frontend/app/components/shared/SessionItem/SessionItem.tsx b/frontend/app/components/shared/SessionItem/SessionItem.tsx index ae7c7b56a..9a329f4c6 100644 --- a/frontend/app/components/shared/SessionItem/SessionItem.tsx +++ b/frontend/app/components/shared/SessionItem/SessionItem.tsx @@ -109,7 +109,7 @@ function SessionItem(props: RouteComponentProps & Props) {
-
+
{ - var iconName = avatarIconName(seed); - return ( -
- - {isAssist &&
} -
- ); +const Avatar = ({ isActive = false, isAssist = false, className, width = '38px', height = '38px', iconSize = 26, seed }) => { + var iconName = avatarIconName(seed); + return ( + +
+ + {isAssist && ( +
+ )} +
+ + ); }; export default Avatar;