From ff3f0acadf810cd1b5bf276b9ee926f2c480b7be Mon Sep 17 00:00:00 2001
From: ankit-thanekar007 <ankit.thanekar007@gmail.com>
Date: Wed, 17 Mar 2021 16:09:08 -0700
Subject: TMA 700, Lock image added

---
 src/screens/profile/PrivacyScreen.tsx | 28 +++++++++-------------------
 1 file changed, 9 insertions(+), 19 deletions(-)

(limited to 'src/screens/profile/PrivacyScreen.tsx')

diff --git a/src/screens/profile/PrivacyScreen.tsx b/src/screens/profile/PrivacyScreen.tsx
index e92769fc..eea0230a 100644
--- a/src/screens/profile/PrivacyScreen.tsx
+++ b/src/screens/profile/PrivacyScreen.tsx
@@ -10,7 +10,7 @@ import {
   View,
 } from 'react-native';
 import {SafeAreaView} from 'react-native-safe-area-context';
-import {normalize} from '../../utils/layouts';
+import {normalize, SCREEN_WIDTH} from '../../utils/layouts';
 import {Background} from '../../components';
 import {BackgroundGradientType} from '../../types';
 import {logout} from '../../store/actions';
@@ -25,7 +25,7 @@ const DATA = [
     data: [
       {
         title: 'Account Type',
-        preimage: require('../../assets/images/tagg-logo.png'),
+        preimage: require('../../assets/images/settings/lock-white.png'),
         postimage: require('../../assets/images/settings/white-arrow.png'),
       },
       {
@@ -38,30 +38,16 @@ const DATA = [
 ];
 
 const PrivacyScreen: React.FC = () => {
-  const dispatch = useDispatch();
   const navigation = useNavigation();
-  const {suggested_people_linked} = useSelector(
-    (state: RootState) => state.user.profile,
-  );
-  const goToUpdateSPProfile = () => {
-    if (suggested_people_linked === 0) {
-      Alert.alert(ERROR_ATTEMPT_EDIT_SP);
-    } else {
-      // Sending undefined for updatedSelectedBadges to mark that there was no update yet
-      navigation.navigate('UpdateSPPicture', {
-        editing: true,
-      });
-    }
-  };
 
   const getActions = (type: string) => {
     switch (type) {
       case 'Account Type':
         navigateTo('AccountTypeScreen', {});
-        break
+        break;
       case 'Blocked Accounts':
         navigateTo('Blocked Accounts', {});
-        break
+        break;
       default:
         break;
     }
@@ -81,7 +67,11 @@ const PrivacyScreen: React.FC = () => {
     postimage: number;
   }) => (
     <TouchableOpacity onPress={() => getActions(title)} style={styles.item}>
-      <Image style={{width: 15, height: 15}} source={preimage} />
+      <Image
+        resizeMode={'cover'}
+        style={{width: SCREEN_WIDTH * 0.05, height: SCREEN_WIDTH * 0.05}}
+        source={preimage}
+      />
       <View style={{marginLeft: 40}}>
         <Text style={styles.title}>{title}</Text>
       </View>
-- 
cgit v1.2.3-70-g09d2

