fixtest
This commit is contained in:
parent
1f58385b95
commit
b5e25e0d6d
|
@ -5,7 +5,7 @@ import { FourOuFourView } from '~/components/Views/FourOuFour'
|
|||
import { LoadMoreItems, LoadMoreWrapper } from '~/components/_shared/LoadMoreWrapper'
|
||||
import { PageLayout } from '~/components/_shared/PageLayout'
|
||||
import { useAuthors } from '~/context/authors'
|
||||
import { useFeed } from '~/context/feed'
|
||||
import { SHOUTS_PER_PAGE, useFeed } from '~/context/feed'
|
||||
import { useLocalize } from '~/context/localize'
|
||||
import { ReactionsProvider } from '~/context/reactions'
|
||||
import { loadAuthors, loadShouts, loadTopics } from '~/graphql/api/public'
|
||||
|
@ -17,7 +17,6 @@ import {
|
|||
Topic
|
||||
} from '~/graphql/schema/core.gen'
|
||||
import { getImageUrl } from '~/lib/getThumbUrl'
|
||||
import { SHOUTS_PER_PAGE } from '../../(main)'
|
||||
|
||||
const fetchAuthorShouts = async (slug: string, offset?: number) => {
|
||||
const opts: LoadShoutsOptions = { filters: { author: slug }, limit: SHOUTS_PER_PAGE, offset }
|
||||
|
|
|
@ -14,6 +14,7 @@ import { byStat } from '../lib/sort'
|
|||
import { useGraphQL } from './graphql'
|
||||
|
||||
export const PRERENDERED_ARTICLES_COUNT = 5
|
||||
export const SHOUTS_PER_PAGE = 20
|
||||
|
||||
type FeedContextType = {
|
||||
sortedFeed: Accessor<Shout[]>
|
||||
|
|
|
@ -12,7 +12,7 @@ import { descFromBody, keywordsFromTopics } from '~/utils/meta'
|
|||
import { FullArticle } from '../../components/Article/FullArticle'
|
||||
import { PageLayout } from '../../components/_shared/PageLayout'
|
||||
import { ReactionsProvider } from '../../context/reactions'
|
||||
import AuthorPage, { AuthorPageProps } from '../author/[slug]/[...tab]'
|
||||
// import AuthorPage, { AuthorPageProps } from '../author/[slug]/[...tab]'
|
||||
import TopicPage, { TopicPageProps } from '../topic/[slug]/[...tab]'
|
||||
|
||||
const fetchShout = async (slug: string): Promise<Shout | undefined> => {
|
||||
|
@ -46,8 +46,8 @@ export default (props: RouteSectionProps<SlugPageProps>) => {
|
|||
...props.params,
|
||||
slug: props.params.slug.slice(1, props.params.slug.length)
|
||||
}
|
||||
} as RouteSectionProps<AuthorPageProps>
|
||||
return <AuthorPage {...patchedProps} />
|
||||
} // as RouteSectionProps<AuthorPageProps>
|
||||
return <Loading /> //</><AuthorPage {...patchedProps} />
|
||||
}
|
||||
|
||||
if (props.params.slug.startsWith('!')) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user