diff --git a/src/modules/anilist/anilistApi.ts b/src/modules/anilist/anilistApi.ts index d7ddd5a..04bacad 100644 --- a/src/modules/anilist/anilistApi.ts +++ b/src/modules/anilist/anilistApi.ts @@ -14,7 +14,6 @@ import { clientData } from '../clientData'; import isAppImage from '../packaging/isAppImage'; import { getOptions, makeRequest } from '../requests'; - const STORE: any = new Store(); const CLIENT_DATA: ClientData = clientData; const PAGES: number = 20; diff --git a/src/renderer/App.tsx b/src/renderer/App.tsx index 80a36b0..6ae3844 100644 --- a/src/renderer/App.tsx +++ b/src/renderer/App.tsx @@ -112,6 +112,7 @@ export default function App() { const historyAvailable = Object.values(entries).length > 0; let result: ListAnimeData[] = []; + const sortNewest = (a: ListAnimeData, b: ListAnimeData) => (getLastWatchedEpisode( (b.media.id ?? diff --git a/src/renderer/components/styles/Buttons.css b/src/renderer/components/styles/Buttons.css index b9751b6..6a86692 100644 --- a/src/renderer/components/styles/Buttons.css +++ b/src/renderer/components/styles/Buttons.css @@ -5,7 +5,6 @@ button.bm .primary { border: none; outline: none; width: max-content; - cursor: pointer; height: 50px; padding: 12px 24px; font-size: 1.1rem; diff --git a/src/types/anilistGraphQLTypes.tsx b/src/types/anilistGraphQLTypes.tsx index 16404c4..e0cbd4a 100644 --- a/src/types/anilistGraphQLTypes.tsx +++ b/src/types/anilistGraphQLTypes.tsx @@ -60,6 +60,14 @@ export type AiringSchedule = { media?: Media; }; +export type AiringScheduleConnection = { + edges?: Array<{ + node?: { + episode: number; + }; + }>; +}; + export type MediaListStatus = | 'CURRENT' | 'PLANNING' @@ -155,13 +163,7 @@ export type Media = { favourites?: number; isAdult?: boolean; nextAiringEpisode?: AiringSchedule; - airingSchedule?: { - edges?: Array<{ - node?: { - episode: number; - }; - }>; - }; + airingSchedule?: AiringScheduleConnection; mediaListEntry?: MediaList; siteUrl?: string; trailer?: MediaTrailer;