1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00

Remove millify from AvatarGroup

This commit is contained in:
Gastón Fournier 2024-09-02 17:08:59 +02:00
parent 7bbc871e21
commit eda3f7a232
No known key found for this signature in database
GPG Key ID: AF45428626E17A8E

View File

@ -4,7 +4,6 @@ import type { IGroupUser } from 'interfaces/group';
import { useMemo } from 'react';
import { UserAvatar } from 'component/common/UserAvatar/UserAvatar'; // usage
import { objectId } from 'utils/objectId';
import millify from 'millify';
const StyledAvatars = styled('div')(({ theme }) => ({
display: 'inline-flex',
@ -86,7 +85,7 @@ const AvatarGroupInner = ({
show={
<AvatarComponent
user={{
username: `Total: ${millify(users.length)}`,
username: `Total: ${users.length}`,
}}
>
+{Math.min(overflow, MAX_OVERFLOW_DISPLAY_NUMBER)}