Skip to content

Commit 6dde247

Browse files
committed
feat: use token
Signed-off-by: amitamrutiya <[email protected]>
1 parent 75811b2 commit 6dde247

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/custom/CollaboratorAvatarGroup/CollaboratorAvatarGroup.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { ExpandMore } from '@mui/icons-material';
22
import { MouseEvent, useState } from 'react';
33
import { Avatar, AvatarGroup, Popover, Typography } from '../../base';
4-
import { CLOUD_URL } from '../../constants/constants';
54
import { iconSmall } from '../../constants/iconsSizes';
65
import { styled, useTheme } from '../../theme';
76
import { CustomTooltip } from '../CustomTooltip';
@@ -71,14 +70,14 @@ const StyledAvatar = styled(Avatar)<StyledAvatarProps>(({ theme, borderColor })
7170
width: theme.spacing(4),
7271
height: theme.spacing(4),
7372
cursor: 'pointer',
74-
border: `2px solid ${borderColor} !important`
73+
border: `2px solid ${borderColor || theme.palette.common.white} !important`
7574
};
7675
});
7776

7877
const MoreAvatarButton = styled('div')(({ theme }) => ({
7978
width: theme.spacing(4.25),
8079
height: theme.spacing(4.25),
81-
border: '1px solid #fff',
80+
border: `1px solid ${theme.palette.common.white}`,
8281
borderRadius: '50%',
8382
background: 'rgba(57, 102, 121, .9)',
8483
display: 'flex',
@@ -189,7 +188,7 @@ const CollaboratorAvatarGroup = ({
189188
.map(([clientID, user]) => (
190189
<PopupAvatarWrapper
191190
key={clientID}
192-
onClick={() => openInNewTab(`https://${CLOUD_URL}/user/${user.user_id}`)}
191+
onClick={() => openInNewTab(`${providerUrl}/user/${user.user_id}`)}
193192
>
194193
<StyledAvatar
195194
alt={user.name}

0 commit comments

Comments
 (0)