Fix: Delete unused code #3651 (#3852)

### What problem does this PR solve?

Fix: Delete unused code #3651

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2024-12-04 14:15:17 +08:00
committed by GitHub
parent 41e2dadea7
commit cf37e2ef1a
2 changed files with 0 additions and 19 deletions

View File

@ -131,23 +131,6 @@ export const useDownloadFile = () => {
return { data, loading, downloadFile: mutateAsync };
};
export const useLoadFile = () => {
const {
data,
isPending: loading,
mutateAsync,
error,
} = useMutation({
mutationKey: ['downloadFile'],
mutationFn: async (params: { id: string }) => {
const response = await fileManagerService.getFile({}, params.id);
const blob = new Blob([response.data], { type: response.data.type });
return blob;
},
});
return { data, loading, loadFile: mutateAsync, error };
};
export const useRenameFile = () => {
const queryClient = useQueryClient();
const { t } = useTranslation();