浏览代码

legit/vouch

Viktoriia 5 月之前
父节点
当前提交
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 { Text, View, TouchableOpacity } from 'react-native';
 import Modal from 'react-native-modal';
 import Modal from 'react-native-modal';
 
 
@@ -26,7 +26,7 @@ export const WarningModal = ({
   isVisible: boolean;
   isVisible: boolean;
   onClose: () => void;
   onClose: () => void;
   type: string;
   type: string;
-  message?: string;
+  message?: string | ReactNode;
   title?: string;
   title?: string;
   action?: () => void;
   action?: () => void;
   onModalHide?: () => 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 [selectedMedia, setSelectedMedia] = useState<any>(null);
 
 
   const [replyMessage, setReplyMessage] = useState<CustomMessage | null>(null);
   const [replyMessage, setReplyMessage] = useState<CustomMessage | null>(null);
-  const [modalInfo, setModalInfo] = useState({
+  const [modalInfo, setModalInfo] = useState<any>({
     visible: false,
     visible: false,
     type: 'confirm',
     type: 'confirm',
     message: '',
     message: '',
@@ -1419,10 +1419,29 @@ const ChatScreen = ({ route }: { route: any }) => {
               setModalInfo({
               setModalInfo({
                 visible: true,
                 visible: true,
                 type: 'success',
                 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: () =>
                 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)
                     console.error('Failed to open auth URL:', err)
                   ),
                   ),
                 buttonTitle: 'OK',
                 buttonTitle: 'OK',

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

@@ -306,7 +306,7 @@ export const PersonalInfo: FC<PersonalInfoProps> = ({
                   style={styles.authBtn}
                   style={styles.authBtn}
                 >
                 >
                   <AuthIcon />
                   <AuthIcon />
-                  <Text style={styles.authText}>Authenticate</Text>
+                  <Text style={styles.authText}>Vouch</Text>
                 </TouchableOpacity>
                 </TouchableOpacity>
               ) : null}
               ) : null}
             </View>
             </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
             This section is meant to provide contact details of fixers in challenging places as
             suggested by our own travellers.{'\n'}
             suggested by our own travellers.{'\n'}
             {'\n'}Advertising is strictly not allowed - the idea is for you to recommend local
             {'\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'}
             users can add an entry!{'\n'}
             {'\n'}Thanks for your input.
             {'\n'}Thanks for your input.
           </Text>
           </Text>