|
1 | 1 | import { ExpandMore } from '@mui/icons-material';
|
2 | 2 | import { MouseEvent, useState } from 'react';
|
3 | 3 | import { Avatar, AvatarGroup, Popover, Typography } from '../../base';
|
4 |
| -import { CLOUD_URL } from '../../constants/constants'; |
5 | 4 | import { iconSmall } from '../../constants/iconsSizes';
|
6 | 5 | import { styled, useTheme } from '../../theme';
|
7 | 6 | import { CustomTooltip } from '../CustomTooltip';
|
@@ -71,14 +70,14 @@ const StyledAvatar = styled(Avatar)<StyledAvatarProps>(({ theme, borderColor })
|
71 | 70 | width: theme.spacing(4),
|
72 | 71 | height: theme.spacing(4),
|
73 | 72 | cursor: 'pointer',
|
74 |
| - border: `2px solid ${borderColor} !important` |
| 73 | + border: `2px solid ${borderColor || theme.palette.common.white} !important` |
75 | 74 | };
|
76 | 75 | });
|
77 | 76 |
|
78 | 77 | const MoreAvatarButton = styled('div')(({ theme }) => ({
|
79 | 78 | width: theme.spacing(4.25),
|
80 | 79 | height: theme.spacing(4.25),
|
81 |
| - border: '1px solid #fff', |
| 80 | + border: `1px solid ${theme.palette.common.white}`, |
82 | 81 | borderRadius: '50%',
|
83 | 82 | background: 'rgba(57, 102, 121, .9)',
|
84 | 83 | display: 'flex',
|
@@ -189,7 +188,7 @@ const CollaboratorAvatarGroup = ({
|
189 | 188 | .map(([clientID, user]) => (
|
190 | 189 | <PopupAvatarWrapper
|
191 | 190 | key={clientID}
|
192 |
| - onClick={() => openInNewTab(`https://${CLOUD_URL}/user/${user.user_id}`)} |
| 191 | + onClick={() => openInNewTab(`${providerUrl}/user/${user.user_id}`)} |
193 | 192 | >
|
194 | 193 | <StyledAvatar
|
195 | 194 | alt={user.name}
|
|
0 commit comments