Change 'teks' route to 'paroles'

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-03-13 01:38:45 +04:00
parent a7475c1163
commit 414db4d14d
12 changed files with 17 additions and 17 deletions
+28
View File
@@ -0,0 +1,28 @@
import PropTypes from 'prop-types'
import {jwennTeks} from '../../lib/oki-api'
import TeksDrawer from '../../components/teks/teks-drawer'
import HeadLayout from '../../components/head-layout'
export default function Teks({teks}) {
return (
<HeadLayout title='Paroles et Traductions' tab={1} slug='paroles'>
<TeksDrawer teks={teks} />
</HeadLayout>
)
}
export async function getServerSideProps() {
const teks = await jwennTeks()
return {
props: {
teks
}
}
}
Teks.propTypes = {
teks: PropTypes.array.isRequired
}