fix: format router.tsx to pass oxfmt check
This commit is contained in:
@@ -235,14 +235,8 @@ function ContentListPage() {
|
|||||||
// Default to defaultLocale when i18n is enabled and no locale specified
|
// Default to defaultLocale when i18n is enabled and no locale specified
|
||||||
const activeLocale = i18n ? (localeParam ?? i18n.defaultLocale) : undefined;
|
const activeLocale = i18n ? (localeParam ?? i18n.defaultLocale) : undefined;
|
||||||
|
|
||||||
const {
|
const { data, fetchNextPage, hasNextPage, isFetchingNextPage, isLoading, error } =
|
||||||
data,
|
useInfiniteQuery({
|
||||||
fetchNextPage,
|
|
||||||
hasNextPage,
|
|
||||||
isFetchingNextPage,
|
|
||||||
isLoading,
|
|
||||||
error,
|
|
||||||
} = useInfiniteQuery({
|
|
||||||
queryKey: ["content", collection, { locale: activeLocale }],
|
queryKey: ["content", collection, { locale: activeLocale }],
|
||||||
queryFn: ({ pageParam }) =>
|
queryFn: ({ pageParam }) =>
|
||||||
fetchContentList(collection, {
|
fetchContentList(collection, {
|
||||||
|
|||||||
Reference in New Issue
Block a user