Skip to content

Commit be3aaf3

Browse files
committed
removed unecessary conditions for icons
1 parent cb33149 commit be3aaf3

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/streams/StreamIcon.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react';
33
import type { Node } from 'react';
44
import type { TextStyleProp } from 'react-native/Libraries/StyleSheet/StyleSheet';
55

6-
import { IconMute, IconStream, IconPrivate, IconWebPublic } from '../common/Icons';
6+
import { IconStream, IconPrivate, IconWebPublic } from '../common/Icons';
77

88
type Props = $ReadOnly<{|
99
color?: string,
@@ -15,13 +15,11 @@ type Props = $ReadOnly<{|
1515
|}>;
1616

1717
export default function StreamIcon(props: Props): Node {
18-
const { color, style, isPrivate, isMuted, isWebPublic, size } = props;
18+
const { color, style, isPrivate, isWebPublic, size } = props;
1919

2020
let Component = undefined;
2121

22-
if (isMuted && isPrivate) {
23-
Component = IconPrivate;
24-
} else if (isPrivate) {
22+
if (isPrivate) {
2523
Component = IconPrivate;
2624
} else if (isWebPublic ?? false) {
2725
Component = IconWebPublic;

src/streams/SubscriptionsScreen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default function SubscriptionsScreen(props: Props): Node {
6161
return [
6262
{ key: 'Pinned', data: sortedSubscriptions.filter(x => x.pin_to_top) },
6363
{ key: 'Unpinned', data: sortedSubscriptions.filter(x => !x.pin_to_top && x.in_home_view) },
64-
{ key: 'muted', data: sortedSubscriptions.filter(x => !x.in_home_view) },
64+
{ key: 'Muted', data: sortedSubscriptions.filter(x => !x.in_home_view) },
6565
];
6666
}, [subscriptions]);
6767

0 commit comments

Comments
 (0)