Skip to content

Commit

Permalink
fix manga recommendation section, remove double page layout option
Browse files Browse the repository at this point in the history
  • Loading branch information
5rahim committed Apr 1, 2024
1 parent 5906ffd commit b7472b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function MangaRecommendations(props: MangaRecommendationsProps) {
...rest
} = props

const anime = entry?.media?.relations?.edges?.map(edge => edge?.node).find(node => node?.type === "ANIME")
const anime = entry?.media?.relations?.edges?.map(edge => edge?.node).find(node => node?.type === "ANIME" && node?.format === "TV")

const recommendations = details?.recommendations?.edges?.map(edge => edge?.node?.mediaRecommendation)?.filter(Boolean)?.slice(0, 6) || []

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ const enum ReadingMode {
const readingModeOptions = [
{ value: ReadingMode.LONG_STRIP, label: "Long strip" },
{ value: ReadingMode.PAGED, label: "Paged" },
{ value: ReadingMode.DOUBLE_PAGE, label: "Double page" },
// { value: ReadingMode.DOUBLE_PAGE, label: "Double page" },
]

const readingDirectionAtom = atomWithStorage<ReadingDirection>("sea-manga-reading-direction", ReadingDirection.LTR)
Expand Down

0 comments on commit b7472b4

Please sign in to comment.