Skip to content

Commit

Permalink
MainTabsScreen: Add Users icon to bottom nav
Browse files Browse the repository at this point in the history
Fixes: zulip#5495
  • Loading branch information
manila committed Sep 26, 2022
1 parent c35b883 commit b1c2e31
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/main/MainTabsScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ import type { AppNavigationMethods, AppNavigationProp } from '../nav/AppNavigato
import { bottomTabNavigatorConfig } from '../styles/tabs';
import HomeScreen from './HomeScreen';
import PmConversationsScreen from '../pm-conversations/PmConversationsScreen';
import { IconInbox, IconStream, IconPeople } from '../common/Icons';
import { IconInbox, IconStream, IconPeople, IconPrivateChat } from '../common/Icons';
import OwnAvatar from '../common/OwnAvatar';
import OfflineNotice from '../common/OfflineNotice';
import ProfileScreen from '../account-info/ProfileScreen';
import styles, { BRAND_COLOR, ThemeContext } from '../styles';
import SubscriptionsScreen from '../streams/SubscriptionsScreen';
import UsersScreen from '../users/UsersScreen';

export type MainTabsNavigatorParamList = {|
+home: RouteParamsOf<typeof HomeScreen>,
Expand Down Expand Up @@ -77,14 +78,22 @@ export default function MainTabsScreen(props: Props): Node {
component={PmConversationsScreen}
options={{
tabBarLabel: 'Private messages',
tabBarIcon: ({ color }) => <IconPeople size={24} color={color} />,
tabBarIcon: ({ color }) => <IconPrivateChat size={24} color={color} />,
tabBarBadge: unreadPmsCount > 0 ? unreadPmsCount : undefined,
tabBarBadgeStyle: {
color: 'white',
backgroundColor: BRAND_COLOR,
},
}}
/>
<Tab.Screen
name="users"
component={UsersScreen}
options={{
tabBarLabel: 'Users',
tabBarIcon: ({ color }) => <IconPeople size={24} color={color} />,
}}
/>
<Tab.Screen
name="profile"
component={ProfileScreen}
Expand Down

0 comments on commit b1c2e31

Please sign in to comment.