diff options
author | Ivan Chen <ivan@tagg.id> | 2021-04-02 14:12:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-02 14:12:49 -0400 |
commit | 3a3f63ee76a31d93068920508b21e9a220b8ef57 (patch) | |
tree | d7795e8f24770c1daf1a8a64b4086418a7577c0b /src/components/common | |
parent | 857bede6a08e97af7609a738b4daf633a46baba1 (diff) | |
parent | ecd44e517cbb978c0a590a5861cb2cd357d0fc11 (diff) |
Merge pull request #348 from leonyjiang/tma750-chat-bottom-tab
[TMA-750] Add Chat to Navigation
Diffstat (limited to 'src/components/common')
-rw-r--r-- | src/components/common/NavigationIcon.tsx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/components/common/NavigationIcon.tsx b/src/components/common/NavigationIcon.tsx index 1a9934f2..5128f3da 100644 --- a/src/components/common/NavigationIcon.tsx +++ b/src/components/common/NavigationIcon.tsx @@ -14,7 +14,8 @@ interface NavigationIconProps extends TouchableOpacityProps { | 'Upload' | 'Notifications' | 'Profile' - | 'SuggestedPeople'; + | 'SuggestedPeople' + | 'Chat'; disabled?: boolean; newIcon?: boolean; } @@ -44,6 +45,13 @@ const NavigationIcon = (props: NavigationIconProps) => { : require('../../assets/navigationIcons/notifications.png') : require('../../assets/navigationIcons/notifications-clicked.png'); break; + case 'Chat': + imgSrc = props.disabled + ? props.newIcon + ? require('../../assets/navigationIcons/chat-notifications.png') + : require('../../assets/navigationIcons/chat.png') + : require('../../assets/navigationIcons/chat-clicked.png'); + break; case 'Profile': imgSrc = props.disabled ? require('../../assets/navigationIcons/profile.png') |