Skip to content

Commit a45297c

Browse files
committed
fix: move tooltip to text
1 parent 1eb191c commit a45297c

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

packages/fuselage-ui-kit/src/blocks/VideoConferenceBlock/VideoConferenceBlock.tsx

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const VideoConferenceBlock = ({
130130
.map(({ name, username }) => (showRealName ? name || username : username))
131131
.join(', ');
132132

133-
const iconTitle =
133+
const title =
134134
data.users.length > MAX_USERS
135135
? t('__usernames__and__count__more_joined', {
136136
usernames: joinedNamesOrUsernames,
@@ -180,11 +180,8 @@ const VideoConferenceBlock = ({
180180
{data.type !== 'direct' &&
181181
(data.users.length ? (
182182
<>
183-
<VideoConfMessageUserStack
184-
iconTitle={iconTitle}
185-
users={data.users}
186-
/>
187-
<VideoConfMessageFooterText>
183+
<VideoConfMessageUserStack users={data.users} />
184+
<VideoConfMessageFooterText title={title}>
188185
{messageFooterText}
189186
</VideoConfMessageFooterText>
190187
</>
@@ -237,11 +234,8 @@ const VideoConferenceBlock = ({
237234
</VideoConfMessageButton>
238235
{Boolean(data.users.length) && (
239236
<>
240-
<VideoConfMessageUserStack
241-
users={data.users}
242-
iconTitle={iconTitle}
243-
/>
244-
<VideoConfMessageFooterText>
237+
<VideoConfMessageUserStack users={data.users} />
238+
<VideoConfMessageFooterText title={title}>
245239
{messageFooterText}
246240
</VideoConfMessageFooterText>
247241
</>

packages/ui-video-conf/src/VideoConfMessage/VideoConfMessageUserStack.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ const MAX_USERS = 3;
77

88
type VideoConfMessageUserStackProps = {
99
users: Serialized<IVideoConferenceUser>[];
10-
iconTitle?: string;
1110
};
1211

13-
const VideoConfMessageUserStack = ({ users, iconTitle }: VideoConfMessageUserStackProps): ReactElement => {
12+
const VideoConfMessageUserStack = ({ users }: VideoConfMessageUserStackProps): ReactElement => {
1413
const displayAvatars = useUserPreference<boolean>('displayAvatars');
1514
const showRealName = useSetting('UI_Use_Real_Name');
1615
const getUserAvatarPath = useUserAvatarPath();
@@ -31,7 +30,7 @@ const VideoConfMessageUserStack = ({ users, iconTitle }: VideoConfMessageUserSta
3130
))}
3231
</Box>
3332
)}
34-
{!displayAvatars && <Icon size='x20' title={iconTitle} name='user' />}
33+
{!displayAvatars && <Icon size='x20' name='user' />}
3534
</Box>
3635
);
3736
};

0 commit comments

Comments
 (0)