[FA-11] Fix react build issues
All checks were successful
CI / build-backend (pull_request) Successful in 1m7s
CI / build-frontend (pull_request) Successful in 26s

This commit is contained in:
gamer147
2025-11-26 08:48:00 -05:00
parent 0180a58084
commit 15a8185621
6 changed files with 756 additions and 1437 deletions

View File

@@ -1,6 +1,7 @@
import { useMemo } from 'react'
import { useNovelsQuery } from '../__generated__/graphql'
import { useQuery } from '@apollo/client/react'
import { NovelsDocument } from '../__generated__/graphql'
import { NovelCard } from '../components/NovelCard'
import { Button } from '../components/ui/button'
import { Card, CardContent, CardHeader, CardTitle } from '../components/ui/card'
@@ -8,7 +9,7 @@ import { Card, CardContent, CardHeader, CardTitle } from '../components/ui/card'
const PAGE_SIZE = 12
export function NovelsPage() {
const { data, loading, error, fetchMore } = useNovelsQuery({
const { data, loading, error, fetchMore } = useQuery(NovelsDocument, {
variables: { first: PAGE_SIZE, after: null },
notifyOnNetworkStatusChange: true,
})