Use gql for "mangas" V - update manga categories

This commit is contained in:
schroda
2023-09-24 17:59:29 +02:00
parent 87aef85683
commit 3297c7d96c
2 changed files with 3 additions and 11 deletions

View File

@@ -26,7 +26,6 @@ import { OperationVariables } from '@apollo/client/core';
import { useEffect, useRef, useState } from 'react';
import {
BackupValidationResult,
ICategory,
IChapter,
IMangaChapter,
ISourceFilters,
@@ -1292,13 +1291,6 @@ export class RequestManager {
return this.getValidImgUrlFor(`manga/${mangaId}/thumbnail`);
}
public useGetMangaCategories(
mangaId: number,
swrOptions?: SWROptions<ICategory[]>,
): AbortableSWRResponse<ICategory[]> {
return this.doRequest(HttpMethod.SWR_GET, `manga/${mangaId}/category`, { swrOptions });
}
public useUpdateMangaCategories(
options?: MutationHookOptions<UpdateMangaCategoriesMutation, UpdateMangaCategoriesMutationVariables>,
): AbortableApolloUseMutationResponse<UpdateMangaCategoriesMutation, UpdateMangaCategoriesMutationVariables> {