🗑️ Remove deprecated code (#1225)
This commit is contained in:
@@ -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 {
|
||||
|
||||
14
src/widgets/download-speed/useGetNetworkSpeed.tsx
Normal file
14
src/widgets/download-speed/useGetNetworkSpeed.tsx
Normal 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,
|
||||
}
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user