Reduce requested manga data in queries
This commit is contained in:
@@ -12,10 +12,10 @@ import { ParseKeys } from 'i18next';
|
||||
import { Location } from 'react-router-dom';
|
||||
import {
|
||||
GetChaptersReaderQuery,
|
||||
GetMangaQuery,
|
||||
GetServerSettingsQuery,
|
||||
GetSourceBrowseQuery,
|
||||
GetSourceSettingsQuery,
|
||||
MangaReaderFieldsFragment,
|
||||
MetaType,
|
||||
SourcePreferenceChangeInput,
|
||||
TrackerType,
|
||||
@@ -84,13 +84,6 @@ export type AppMetadataKeys = MetadataServerSettingKeys | MangaMetadataKeys | Se
|
||||
|
||||
export type MetadataKeyValuePair = [AppMetadataKeys, AllowedMetadataValueTypes];
|
||||
|
||||
export type TManga = GetMangaQuery['manga'];
|
||||
|
||||
export type TPartialManga = OptionalProperty<
|
||||
TManga,
|
||||
'unreadCount' | 'downloadCount' | 'bookmarkCount' | 'categories' | 'chapters'
|
||||
>;
|
||||
|
||||
export interface INavbarOverride {
|
||||
status: boolean;
|
||||
value: any;
|
||||
@@ -187,7 +180,7 @@ export interface IReaderProps {
|
||||
curPage: number;
|
||||
initialPage: number;
|
||||
settings: IReaderSettings;
|
||||
manga: TManga;
|
||||
manga: MangaReaderFieldsFragment;
|
||||
chapter: GetChaptersReaderQuery['chapters']['nodes'][number];
|
||||
nextChapter: () => void;
|
||||
prevChapter: () => void;
|
||||
|
||||
Reference in New Issue
Block a user