From 9aadc6789abd11022881b1eb1f73f43ea7ba669a Mon Sep 17 00:00:00 2001 From: ncoelho Date: Sat, 19 Dec 2020 17:34:09 +0000 Subject: [PATCH 1/2] ADD: Telegram and Discord links on about section --- loc/en.json | 3 ++- screen/settings/about.js | 16 ++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/loc/en.json b/loc/en.json index f4910480b..56663a2cb 100644 --- a/loc/en.json +++ b/loc/en.json @@ -232,7 +232,8 @@ "about_review": "Leave us a review", "about_selftest": "Run self-test", "about_sm_github": "GitHub", - "about_sm_telegram": "Telegram chat", + "about_sm_discord": "Discord Server", + "about_sm_telegram": "Telegram channel", "about_sm_twitter": "Follow us on Twitter", "advanced_options": "Advanced Options", "currency": "Currency", diff --git a/screen/settings/about.js b/screen/settings/about.js index e6f437a50..b1d31c917 100644 --- a/screen/settings/about.js +++ b/screen/settings/about.js @@ -71,12 +71,12 @@ const About = () => { Linking.openURL('https://twitter.com/bluewalletio'); }; - const handleOnGithubPress = () => { - Linking.openURL('https://github.com/BlueWallet/BlueWallet'); + const handleOnDiscordPress = () => { + Linking.openURL('https://discord.gg/btWq2Aby2z'); }; const handleOnTelegramPress = () => { - Linking.openURL('https://t.me/bluewallet'); + Linking.openURL('https://t.me/bluewallethat'); }; const handleOnRatePress = () => { @@ -126,12 +126,12 @@ const About = () => { /> From 545bbcb4cad25428d0da24570ab8809b977f64f5 Mon Sep 17 00:00:00 2001 From: ncoelho Date: Sat, 19 Dec 2020 18:32:47 +0000 Subject: [PATCH 2/2] REF: Github link on about --- screen/settings/about.js | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/screen/settings/about.js b/screen/settings/about.js index b1d31c917..41df6177b 100644 --- a/screen/settings/about.js +++ b/screen/settings/about.js @@ -1,5 +1,5 @@ import React from 'react'; -import { ScrollView, Linking, Image, View, Text, StyleSheet, useWindowDimensions } from 'react-native'; +import { TouchableOpacity, ScrollView, Linking, Image, View, Text, StyleSheet, useWindowDimensions } from 'react-native'; import { useNavigation, useTheme } from '@react-navigation/native'; import { BlueTextCentered, @@ -10,6 +10,7 @@ import { BlueListItem, BlueNavigationStyle, } from '../../BlueComponents'; +import { Icon } from 'react-native-elements'; import { getApplicationName, getVersion, getBundleId, getBuildNumber } from 'react-native-device-info'; import Rate, { AndroidMarket } from 'react-native-rate'; import loc from '../../loc'; @@ -53,6 +54,18 @@ const About = () => { paddingTop: 0, borderRadius: 8, }, + buttonLink :{ + backgroundColor: colors.lightButton, + borderRadius: 12, + justifyContent: 'center', + padding: 8, + flexDirection: 'row', + }, + textLink :{ + color: colors.foregroundColor, + marginLeft: 8, + fontWeight: '600', + }, }); const handleOnReleaseNotesPress = () => { @@ -78,7 +91,9 @@ const About = () => { const handleOnTelegramPress = () => { Linking.openURL('https://t.me/bluewallethat'); }; - + const handleOnGithubPress = () => { + Linking.openURL('https://github.com/BlueWallet/BlueWallet'); + }; const handleOnRatePress = () => { const options = { AppleAppID: '1376878040', @@ -143,6 +158,15 @@ const About = () => { bitcoinjs-lib Nodejs Electrum server + + + + + {loc.settings.about_sm_github} +