diff --git a/mobile/src/screens/client/ProfileScreen.tsx b/mobile/src/screens/client/ProfileScreen.tsx index 14ce2cbb..ecb93020 100644 --- a/mobile/src/screens/client/ProfileScreen.tsx +++ b/mobile/src/screens/client/ProfileScreen.tsx @@ -15,7 +15,7 @@ import { Linking, } from "react-native"; import { Feather } from "@expo/vector-icons"; -import { useFocusEffect } from "@react-navigation/native"; +import { useFocusEffect, useNavigation } from "@react-navigation/native"; import AsyncStorage from "@react-native-async-storage/async-storage"; import { Ionicons } from "@expo/vector-icons"; import { getMyProfile, updateMyProfile, getTelegramStatus, generateTelegramLinkToken, unlinkTelegram, changePassword, get2FAStatus, toggle2FA, getPublicSettings } from "../../api/api"; @@ -30,6 +30,7 @@ const STORAGE_SIGNAL = "profile_signal_pseudo"; export default function ProfileScreen() { const { colors } = useTheme(); + const navigation = useNavigation(); // Données compte (backend) const [nom, setNom] = useState(""); @@ -534,6 +535,21 @@ export default function ProfileScreen() { + {/* Carte Parrainage */} + + + + Parrainage + + navigation.navigate("Parrainage")} + > + + Voir mon parrainage + + + {/* Carte Telegram */} {telegramEnabled && (