|
@@ -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',
|