don't bold muted channels (#6713)
This commit is contained in:
parent
04c3533b95
commit
fd7ab546e0
2 changed files with 3 additions and 3 deletions
|
|
@ -103,7 +103,7 @@ const ChannelIcon = ({
|
|||
let unreadGroup;
|
||||
let mutedStyle;
|
||||
|
||||
if (isUnread) {
|
||||
if (isUnread && !isMuted) {
|
||||
unreadIcon = styles.iconUnread;
|
||||
unreadGroupBox = styles.groupBoxUnread;
|
||||
unreadGroup = styles.groupUnread;
|
||||
|
|
@ -116,7 +116,7 @@ const ChannelIcon = ({
|
|||
}
|
||||
|
||||
if (isInfo) {
|
||||
activeIcon = isUnread ? styles.iconInfoUnread : styles.iconInfo;
|
||||
activeIcon = isUnread && !isMuted ? styles.iconInfoUnread : styles.iconInfo;
|
||||
activeGroupBox = styles.groupBoxInfo;
|
||||
activeGroup = isUnread ? styles.groupInfoUnread : styles.groupInfo;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@ const ChannelListItem = ({
|
|||
}, [channel.id]);
|
||||
|
||||
const textStyles = useMemo(() => [
|
||||
isBolded ? textStyle.bold : textStyle.regular,
|
||||
isBolded && !isMuted ? textStyle.bold : textStyle.regular,
|
||||
styles.text,
|
||||
isBolded && styles.highlight,
|
||||
isActive && isTablet && !isInfo ? styles.textActive : null,
|
||||
|
|
|
|||
Loading…
Reference in a new issue