🗑️ Remove deprecated code (#1225)

This commit is contained in:
Manuel
2023-07-28 23:09:21 +02:00
committed by GitHub
parent a45a1bdb18
commit c99c06c0bb
44 changed files with 83 additions and 4126 deletions

View File

@@ -18,7 +18,7 @@ import { useEffect } from 'react';
import { AppAvatar } from '../../components/AppAvatar';
import { useConfigContext } from '../../config/provider';
import { useGetDownloadClientsQueue } from '../../hooks/widgets/download-speed/useGetNetworkSpeed';
import { useGetDownloadClientsQueue } from './useGetNetworkSpeed';
import { useColorTheme } from '../../tools/color';
import { humanFileSize } from '../../tools/humanFileSize';
import {

View File

@@ -0,0 +1,14 @@
import { useConfigContext } from '~/config/provider';
import { api } from '~/utils/api';
export const useGetDownloadClientsQueue = () => {
const { name: configName } = useConfigContext();
return api.download.get.useQuery(
{
configName: configName!,
},
{
refetchInterval: 3000,
}
);
};