pass randomTopics as prop to PageLayout in AllTopics view (#218)

This commit is contained in:
Ilya Y 2023-09-14 16:02:07 +03:00 committed by GitHub
parent 019c4540d0
commit e4964e8e15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -18,7 +18,6 @@ import { getDescription } from '../../../utils/meta'
import { useLocalize } from '../../../context/localize'
import { useSession } from '../../../context/session'
import { useTopicsStore } from '../../../stores/zine/topics'
import styles from './Header.module.scss'

View File

@ -18,7 +18,7 @@ export const AllTopicsPage = (props: PageProps) => {
})
return (
<PageLayout>
<PageLayout randomTopics={props.randomTopics}>
<Show when={isLoaded()} fallback={<Loading />}>
<AllTopicsView topics={props.allTopics} />
</Show>