aboutsummaryrefslogtreecommitdiff
path: root/src/components/common
diff options
context:
space:
mode:
authorIvan Chen <ivan@thetaggid.com>2021-02-10 11:22:48 -0500
committerGitHub <noreply@github.com>2021-02-10 11:22:48 -0500
commit18f7a890d13aad0bead329cece6c093e60609151 (patch)
tree880fe1b37a0895094312ebda933ae7f6497bd7cd /src/components/common
parentc5e4bfbba73090b9fa3d422ddf31aaa915d032df (diff)
parent0d51e6f2b860a7bfe559284e9e3a10a7dd0e6e63 (diff)
Merge branch 'master' into hotfix-header-refactor
Diffstat (limited to 'src/components/common')
-rw-r--r--src/components/common/NavigationIcon.tsx13
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;
}