Skip to content

Commit b1c2e31

Browse files
committed
MainTabsScreen: Add Users icon to bottom nav
Fixes: zulip#5495
1 parent c35b883 commit b1c2e31

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/main/MainTabsScreen.js

+11-2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ import type { AppNavigationMethods, AppNavigationProp } from '../nav/AppNavigato
1313
import { bottomTabNavigatorConfig } from '../styles/tabs';
1414
import HomeScreen from './HomeScreen';
1515
import PmConversationsScreen from '../pm-conversations/PmConversationsScreen';
16-
import { IconInbox, IconStream, IconPeople } from '../common/Icons';
16+
import { IconInbox, IconStream, IconPeople, IconPrivateChat } from '../common/Icons';
1717
import OwnAvatar from '../common/OwnAvatar';
1818
import OfflineNotice from '../common/OfflineNotice';
1919
import ProfileScreen from '../account-info/ProfileScreen';
2020
import styles, { BRAND_COLOR, ThemeContext } from '../styles';
2121
import SubscriptionsScreen from '../streams/SubscriptionsScreen';
22+
import UsersScreen from '../users/UsersScreen';
2223

2324
export type MainTabsNavigatorParamList = {|
2425
+home: RouteParamsOf<typeof HomeScreen>,
@@ -77,14 +78,22 @@ export default function MainTabsScreen(props: Props): Node {
7778
component={PmConversationsScreen}
7879
options={{
7980
tabBarLabel: 'Private messages',
80-
tabBarIcon: ({ color }) => <IconPeople size={24} color={color} />,
81+
tabBarIcon: ({ color }) => <IconPrivateChat size={24} color={color} />,
8182
tabBarBadge: unreadPmsCount > 0 ? unreadPmsCount : undefined,
8283
tabBarBadgeStyle: {
8384
color: 'white',
8485
backgroundColor: BRAND_COLOR,
8586
},
8687
}}
8788
/>
89+
<Tab.Screen
90+
name="users"
91+
component={UsersScreen}
92+
options={{
93+
tabBarLabel: 'Users',
94+
tabBarIcon: ({ color }) => <IconPeople size={24} color={color} />,
95+
}}
96+
/>
8897
<Tab.Screen
8998
name="profile"
9099
component={ProfileScreen}

0 commit comments

Comments
 (0)