aboutsummaryrefslogtreecommitdiff
path: root/src/components/common/NavigationIcon.tsx
diff options
context:
space:
mode:
authorShravya Ramesh <shravs1208@gmail.com>2021-02-08 14:43:20 -0800
committerShravya Ramesh <shravs1208@gmail.com>2021-02-08 14:43:20 -0800
commitc32197f793005a81a0a06c6d755ed374078624c3 (patch)
treea9f4c24b662d4c47aa1edb2a5c4bf90b9b638219 /src/components/common/NavigationIcon.tsx
parentf28ef2d4ac61475d7bd9728634b80f7c0760ff58 (diff)
navigation bar to go to suggested people
Diffstat (limited to 'src/components/common/NavigationIcon.tsx')
-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;
}