Archive: Fix unread badge styles (#3115)
This commit is contained in:
parent
cf1d5c6636
commit
0d782c24e1
@ -15,7 +15,7 @@ import useLang from '../../../hooks/useLang';
|
|||||||
import { useFolderManagerForOrderedIds, useFolderManagerForUnreadCounters } from '../../../hooks/useFolderManager';
|
import { useFolderManagerForOrderedIds, useFolderManagerForUnreadCounters } from '../../../hooks/useFolderManager';
|
||||||
|
|
||||||
import ListItem from '../../ui/ListItem';
|
import ListItem from '../../ui/ListItem';
|
||||||
import AnimatedCounter from '../../common/AnimatedCounter';
|
import Badge from '../../ui/Badge';
|
||||||
|
|
||||||
import styles from './Archive.module.scss';
|
import styles from './Archive.module.scss';
|
||||||
|
|
||||||
@ -107,11 +107,10 @@ const Archive: FC<OwnProps> = ({
|
|||||||
{lang('ArchivedChats')}
|
{lang('ArchivedChats')}
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
{Boolean(archiveUnreadCount) && (
|
<Badge
|
||||||
<div className={styles.unreadCount}>
|
className={styles.unreadCount}
|
||||||
<AnimatedCounter text={formatIntegerCompact(archiveUnreadCount)} />
|
text={archiveUnreadCount ? formatIntegerCompact(archiveUnreadCount) : undefined}
|
||||||
</div>
|
/>
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@ -135,11 +134,10 @@ const Archive: FC<OwnProps> = ({
|
|||||||
<div className={buildClassName('status', styles.chatsPreview)}>
|
<div className={buildClassName('status', styles.chatsPreview)}>
|
||||||
{previewItems}
|
{previewItems}
|
||||||
</div>
|
</div>
|
||||||
{Boolean(archiveUnreadCount) && (
|
<Badge
|
||||||
<div className="Badge">
|
className={styles.unreadCount}
|
||||||
<AnimatedCounter text={formatIntegerCompact(archiveUnreadCount)} />
|
text={archiveUnreadCount ? formatIntegerCompact(archiveUnreadCount) : undefined}
|
||||||
</div>
|
/>
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user