register update

This commit is contained in:
Samandar Turgunboyev
2026-03-18 17:56:26 +05:00
parent a34cf75c57
commit 22c1688781
31 changed files with 631 additions and 1080 deletions

View File

@@ -86,13 +86,11 @@ export default function EditService() {
const { mutate, isPending } = useMutation({
mutationFn: (body: FormData) => user_api.update_service({ body, id: Number(id) }),
onSuccess: (res) => {
console.log(res);
queryClient.invalidateQueries({ queryKey: ['my_services'] });
queryClient.invalidateQueries({ queryKey: ['service_detail'] });
router.back();
},
onError: (err: any) => {
console.log(err);
Alert.alert(t('Xatolik yuz berdi'), err?.message || t('Yangilashda xato yuz berdi'));
},
});

View File

@@ -80,7 +80,6 @@ export function ReferralsTab() {
title: t('Referal linkni ulashish'),
});
} catch (err) {
console.log('Share error:', err);
}
if (Platform.OS === 'android') {