Browse Source

legit/vouch

Viktoriia 3 months ago
parent
commit
6a81488e09

+ 2 - 2
src/components/WarningModal/index.tsx

@@ -1,4 +1,4 @@
-import React from 'react';
+import React, { ReactNode } from 'react';
 import { Text, View, TouchableOpacity } from 'react-native';
 import Modal from 'react-native-modal';
 
@@ -26,7 +26,7 @@ export const WarningModal = ({
   isVisible: boolean;
   onClose: () => void;
   type: string;
-  message?: string;
+  message?: string | ReactNode;
   title?: string;
   action?: () => void;
   onModalHide?: () => void;

+ 23 - 4
src/screens/InAppScreens/MessagesScreen/ChatScreen/index.tsx

@@ -118,7 +118,7 @@ const ChatScreen = ({ route }: { route: any }) => {
   const [selectedMedia, setSelectedMedia] = useState<any>(null);
 
   const [replyMessage, setReplyMessage] = useState<CustomMessage | null>(null);
-  const [modalInfo, setModalInfo] = useState({
+  const [modalInfo, setModalInfo] = useState<any>({
     visible: false,
     type: 'confirm',
     message: '',
@@ -1419,10 +1419,29 @@ const ChatScreen = ({ route }: { route: any }) => {
               setModalInfo({
                 visible: true,
                 type: 'success',
-                message:
-                  'Only legit NomadManias and friends can send messages.\nBefriend this traveller first or become Legit!',
+                message: (
+                  <Text>
+                    Only legit NomadManias and friends can send messages.{'\n'}Befriend this
+                    traveller first or{' '}
+                    <Text
+                      style={{
+                        color: Colors.ORANGE,
+                        textDecorationLine: 'underline',
+                        textDecorationColor: Colors.ORANGE
+                      }}
+                      onPress={() =>
+                        Linking.openURL('https://nomadmania.com/badges/').catch((err) =>
+                          console.error('Failed to open auth URL:', err)
+                        )
+                      }
+                    >
+                      become Legit
+                    </Text>
+                    !
+                  </Text>
+                ),
                 action: () =>
-                  Linking.openURL('https://nomadmania.com/blog-authentication/').catch((err) =>
+                  Linking.openURL('https://nomadmania.com/badges/').catch((err) =>
                     console.error('Failed to open auth URL:', err)
                   ),
                 buttonTitle: 'OK',

+ 1 - 1
src/screens/InAppScreens/ProfileScreen/Components/PersonalInfo.tsx

@@ -306,7 +306,7 @@ export const PersonalInfo: FC<PersonalInfoProps> = ({
                   style={styles.authBtn}
                 >
                   <AuthIcon />
-                  <Text style={styles.authText}>Authenticate</Text>
+                  <Text style={styles.authText}>Vouch</Text>
                 </TouchableOpacity>
               ) : null}
             </View>

+ 1 - 1
src/screens/InfoScreens/FixersInfoScreen/index.tsx

@@ -26,7 +26,7 @@ export const FixersInfoScreen: FC<Props> = ({ navigation }) => {
             This section is meant to provide contact details of fixers in challenging places as
             suggested by our own travellers.{'\n'}
             {'\n'}Advertising is strictly not allowed - the idea is for you to recommend local
-            fixers/experts that you experienced directly and you would recommend. Only authenticated
+            fixers/experts that you experienced directly and you would recommend. Only legit
             users can add an entry!{'\n'}
             {'\n'}Thanks for your input.
           </Text>