fix: icônes partage/streaming ne dépendent plus du plafond de 100
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import {Suspense} from 'react'
|
||||
import {notFound} from 'next/navigation'
|
||||
import {jwennTeks} from '../../lib/oki-api'
|
||||
import {jwennTeks, jwennTeksEpiSlug} from '../../lib/oki-api'
|
||||
import TeksDrawer from '../../components/teks/teks-drawer'
|
||||
import Loading from './loading'
|
||||
|
||||
@@ -49,13 +49,15 @@ async function jwennDotDone() {
|
||||
return teks
|
||||
}
|
||||
|
||||
export default async function PawolLayout({children}) {
|
||||
export default async function PawolLayout({children, params}) {
|
||||
const {slug} = await params
|
||||
const teks = await jwennDotDone()
|
||||
const parole = slug ? await jwennTeksEpiSlug(slug) : null
|
||||
|
||||
return (
|
||||
<>
|
||||
<Suspense fallback={<Loading />}>
|
||||
<TeksDrawer paroles={teks} />
|
||||
<TeksDrawer paroles={teks} parole={parole} />
|
||||
</Suspense>
|
||||
<section>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user