mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-30 06:02:00 +02:00
Remove analytics and add more update headers
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
import { useFastMutation } from './useFastMutation';
|
||||
import { trackEvent } from '../lib/analytics';
|
||||
import { invokeCmd } from '../lib/tauri';
|
||||
|
||||
export function useDuplicateFolder(id: string) {
|
||||
return useFastMutation<void, string>({
|
||||
mutationKey: ['duplicate_folder', id],
|
||||
mutationFn: () => invokeCmd('cmd_duplicate_folder', { id }),
|
||||
onSettled: () => trackEvent('folder', 'duplicate'),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user