diff --git a/src/components/AuthorsList/AuthorsList.tsx b/src/components/AuthorsList/AuthorsList.tsx index 2f3bb060..6597b171 100644 --- a/src/components/AuthorsList/AuthorsList.tsx +++ b/src/components/AuthorsList/AuthorsList.tsx @@ -11,7 +11,7 @@ import styles from './AuthorsList.module.scss' type Props = { class?: string - query: 'shouts' | 'authors' + query: 'followers' | 'shouts' searchQuery?: string allAuthorsLength?: number } @@ -25,7 +25,7 @@ export const AuthorsList = (props: Props) => { const [currentPage, setCurrentPage] = createSignal({ shouts: 0, followers: 0 }) const [allLoaded, setAllLoaded] = createSignal(false) - const fetchAuthors = async (queryType: 'shouts' | 'authors', page: number) => { + const fetchAuthors = async (queryType: Props['query'], page: number) => { setLoading(true) console.log('!!! AAA:') diff --git a/src/components/Views/AllAuthors/AllAuthors.tsx b/src/components/Views/AllAuthors/AllAuthors.tsx index 3d0552b9..68dd3605 100644 --- a/src/components/Views/AllAuthors/AllAuthors.tsx +++ b/src/components/Views/AllAuthors/AllAuthors.tsx @@ -167,7 +167,7 @@ export const AllAuthors = (props: Props) => {