aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/profile/ProfileBody.tsx12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/components/profile/ProfileBody.tsx b/src/components/profile/ProfileBody.tsx
index 3c05fc26..dbaf78c9 100644
--- a/src/components/profile/ProfileBody.tsx
+++ b/src/components/profile/ProfileBody.tsx
@@ -1,5 +1,5 @@
-import React, {useContext} from 'react';
-import {StyleSheet, View, Text, LayoutChangeEvent} from 'react-native';
+import React from 'react';
+import {StyleSheet, View, Text, LayoutChangeEvent, Linking} from 'react-native';
import {TAGG_DARK_BLUE, TOGGLE_BUTTON_TYPE} from '../../constants';
import ToggleButton from './ToggleButton';
import {RootState} from '../../store/rootReducer';
@@ -40,7 +40,13 @@ const ProfileBody: React.FC<ProfileBodyProps> = ({
<View onLayout={onLayout} style={styles.container}>
<Text style={styles.username}>{`@${username}`}</Text>
<Text style={styles.biography}>{`${biography}`}</Text>
- <Text style={styles.website}>{`${website}`}</Text>
+ <Text
+ style={styles.website}
+ onPress={() => {
+ Linking.openURL(
+ website.startsWith('http') ? website : 'http://' + website,
+ );
+ }}>{`${website}`}</Text>
{userXId && !isOwnProfile ? (
<View style={styles.toggleButtonContainer}>
{!isBlocked && (