diff options
author | Ivan Chen <ivan@thetaggid.com> | 2021-02-09 15:37:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-09 15:37:51 -0500 |
commit | 0d51e6f2b860a7bfe559284e9e3a10a7dd0e6e63 (patch) | |
tree | 6c325a84b891c10b0660220ceecf6b02098bd6f5 /src/components/common/NavigationIcon.tsx | |
parent | dcf6aaf1b19b645adefaf51ef0ab7684a9acf3ab (diff) | |
parent | bbdfbe7fd5d6981befa3e0bb960a6efbb9ca1c05 (diff) |
Merge pull request #234 from TaggiD-Inc/tma257-sp-base-screen
Tma257 sp base screen
Diffstat (limited to 'src/components/common/NavigationIcon.tsx')
-rw-r--r-- | src/components/common/NavigationIcon.tsx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/components/common/NavigationIcon.tsx b/src/components/common/NavigationIcon.tsx index 4bf35360..1a9934f2 100644 --- a/src/components/common/NavigationIcon.tsx +++ b/src/components/common/NavigationIcon.tsx @@ -8,7 +8,13 @@ import { } from 'react-native'; interface NavigationIconProps extends TouchableOpacityProps { - tab: 'Home' | 'Search' | 'Upload' | 'Notifications' | 'Profile'; + tab: + | 'Home' + | 'Search' + | 'Upload' + | 'Notifications' + | 'Profile' + | 'SuggestedPeople'; disabled?: boolean; newIcon?: boolean; } @@ -43,6 +49,11 @@ const NavigationIcon = (props: NavigationIconProps) => { ? require('../../assets/navigationIcons/profile.png') : require('../../assets/navigationIcons/profile-clicked.png'); break; + case 'SuggestedPeople': + imgSrc = props.disabled + ? require('../../assets/navigationIcons/suggested-people.png') + : require('../../assets/navigationIcons/suggested-people-clicked.png'); + break; default: imgSrc = null; } |