fix: format router.tsx to pass oxfmt check
This commit is contained in:
@@ -235,25 +235,19 @@ 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,
|
queryKey: ["content", collection, { locale: activeLocale }],
|
||||||
hasNextPage,
|
queryFn: ({ pageParam }) =>
|
||||||
isFetchingNextPage,
|
fetchContentList(collection, {
|
||||||
isLoading,
|
locale: activeLocale,
|
||||||
error,
|
cursor: pageParam as string | undefined,
|
||||||
} = useInfiniteQuery({
|
limit: 100,
|
||||||
queryKey: ["content", collection, { locale: activeLocale }],
|
}),
|
||||||
queryFn: ({ pageParam }) =>
|
initialPageParam: undefined as string | undefined,
|
||||||
fetchContentList(collection, {
|
getNextPageParam: (lastPage) => lastPage.nextCursor,
|
||||||
locale: activeLocale,
|
enabled: !!manifest,
|
||||||
cursor: pageParam as string | undefined,
|
});
|
||||||
limit: 100,
|
|
||||||
}),
|
|
||||||
initialPageParam: undefined as string | undefined,
|
|
||||||
getNextPageParam: (lastPage) => lastPage.nextCursor,
|
|
||||||
enabled: !!manifest,
|
|
||||||
});
|
|
||||||
|
|
||||||
// Fetch trashed items
|
// Fetch trashed items
|
||||||
const { data: trashedData, isLoading: isTrashedLoading } = useQuery({
|
const { data: trashedData, isLoading: isTrashedLoading } = useQuery({
|
||||||
|
|||||||
Reference in New Issue
Block a user