bug fixed
This commit is contained in:
@@ -10,6 +10,7 @@ import { I18nextProvider } from 'react-i18next';
|
||||
import { View } from 'react-native';
|
||||
import 'react-native-reanimated';
|
||||
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
||||
import ToastManager from "toastify-react-native";
|
||||
|
||||
function AppContent() {
|
||||
useNotifications();
|
||||
@@ -43,6 +44,7 @@ export default function RootLayout() {
|
||||
<ProfileDataProvider>
|
||||
<AuthProvider>
|
||||
<AppContent />
|
||||
<ToastManager />
|
||||
</AuthProvider>
|
||||
</ProfileDataProvider>
|
||||
</ThemeProvider>
|
||||
|
||||
@@ -14,10 +14,10 @@ import {
|
||||
ScrollView,
|
||||
StyleSheet,
|
||||
Text,
|
||||
ToastAndroid,
|
||||
TouchableOpacity,
|
||||
View,
|
||||
} from 'react-native';
|
||||
import { Toast } from 'toastify-react-native';
|
||||
|
||||
export default function PersonalInfoScreen() {
|
||||
const router = useRouter();
|
||||
@@ -76,7 +76,7 @@ export default function PersonalInfoScreen() {
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries({ queryKey: ['get_me'] });
|
||||
router.push('/profile/personal-info');
|
||||
ToastAndroid.show(t("Ma'lumotlar yangilandi"), ToastAndroid.TOP);
|
||||
Toast.success(t("Ma'lumotlar yangilandi"));
|
||||
},
|
||||
onError: () => {
|
||||
Alert.alert(t('Xatolik yzu berdi'), t("Ma'lumotlarni yangilashda xatolik yuz berdi"));
|
||||
|
||||
@@ -9,17 +9,16 @@ import { useEffect, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import {
|
||||
ActivityIndicator,
|
||||
Alert,
|
||||
Image,
|
||||
Pressable,
|
||||
ScrollView,
|
||||
StyleSheet,
|
||||
Text,
|
||||
TextInput,
|
||||
ToastAndroid,
|
||||
TouchableOpacity,
|
||||
View,
|
||||
View
|
||||
} from 'react-native';
|
||||
import { Toast } from 'toastify-react-native';
|
||||
|
||||
export default function PersonalInfoScreen() {
|
||||
const router = useRouter();
|
||||
@@ -71,10 +70,10 @@ export default function PersonalInfoScreen() {
|
||||
queryClient.invalidateQueries({ queryKey: ['get_me'] });
|
||||
setIsEditing(false);
|
||||
setShowCategories(false);
|
||||
ToastAndroid.show(t("Ma'lumotlar yangilandi"), ToastAndroid.TOP);
|
||||
Toast.success(t("Ma'lumotlar yangilandi"));
|
||||
},
|
||||
onError: () => {
|
||||
Alert.alert(t('Xatolik yuz berdi'), t('Yangilashda xatolik yuz berdi'));
|
||||
Toast.error(t('Yangilashda xatolik yuz berdi'));
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user