added confirm dialog, some translations
This commit is contained in:
1 parent
b4085e5340
commit
d832949746
78 files changed
+753
-948
No files matched your search
@@ -57,9 +57,6 @@ export function useCreateCardReason() {
|
||||
queryClient.invalidateQueries({ queryKey: cardReasonKeys.lists() })
|
||||
toast.success(t('CardReasons.toast.createSuccess', 'Kart ýagdaýy döredildi'))
|
||||
},
|
||||
onError: () => {
|
||||
toast.error(t('CardReasons.toast.createError', 'Döretmek başartmady'))
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
@@ -76,9 +73,6 @@ export function useUpdateCardReason() {
|
||||
queryClient.invalidateQueries({ queryKey: cardReasonKeys.detail(data.id) })
|
||||
toast.success(t('CardReasons.toast.updateSuccess', 'Kart ýagdaýy täzelendi'))
|
||||
},
|
||||
onError: () => {
|
||||
toast.error(t('CardReasons.toast.updateError', 'Täzelemek başartmady'))
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
@@ -94,8 +88,5 @@ export function useDeleteCardReason() {
|
||||
queryClient.invalidateQueries({ queryKey: cardReasonKeys.lists() })
|
||||
toast.success(t('CardReasons.toast.deleteSuccess', 'Kart ýagdaýy öçürildi'))
|
||||
},
|
||||
onError: () => {
|
||||
toast.error(t('CardReasons.toast.deleteError', 'Öçürmek başartmady'))
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user