added confirm dialog, some translations
This commit is contained in:
@@ -40,9 +40,6 @@ export function useCreateIntlPayment() {
|
||||
qc.invalidateQueries({ queryKey: INTL_PAYMENT_KEYS.lists() })
|
||||
toast.success(t('intlPayment.createSuccess', 'Töleg döredildi'))
|
||||
},
|
||||
onError: () => {
|
||||
toast.error(t('intlPayment.createError', 'Döretmek başartmady'))
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
@@ -56,9 +53,6 @@ export function useUpdateIntlPayment(id: string) {
|
||||
qc.invalidateQueries({ queryKey: INTL_PAYMENT_KEYS.detail(id) })
|
||||
toast.success(t('intlPayment.updateSuccess', 'Töleg üýtgedildi'))
|
||||
},
|
||||
onError: () => {
|
||||
toast.error(t('intlPayment.updateError', 'Üýtgetmek başartmady'))
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
@@ -71,8 +65,5 @@ export function useDeleteIntlPayment() {
|
||||
qc.invalidateQueries({ queryKey: INTL_PAYMENT_KEYS.lists() })
|
||||
toast.success(t('intlPayment.deleteSuccess', 'Töleg pozuldy'))
|
||||
},
|
||||
onError: () => {
|
||||
toast.error(t('intlPayment.deleteError', 'Pozmak başartmady'))
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user