Add NextTopLoader and fix Footer position
This commit is contained in:
+4
-4
@@ -3,8 +3,7 @@ import {notFound} from 'next/navigation'
|
||||
|
||||
import {jwennDenyeTeks} from '../../lib/oki-api'
|
||||
import DenyeTeks from '../../components/teks/denye-teks'
|
||||
|
||||
const drawerWidth = 240
|
||||
import Footer from '../../components/footer'
|
||||
|
||||
async function jwennDone() {
|
||||
const denyeTeks = await jwennDenyeTeks()
|
||||
@@ -20,13 +19,14 @@ export default async function PawolPaj() {
|
||||
const denyeTeks = await jwennDone()
|
||||
|
||||
return (
|
||||
<Box sx={{display: 'flex'}}>
|
||||
<Box sx={{display: 'flex', flexDirection: 'column', minHeight: '100vh'}}>
|
||||
<Box
|
||||
component='main'
|
||||
sx={{flexGrow: 1, p: 2, mt: 2, width: {sm: `calc(100% - ${drawerWidth}px)`}}}
|
||||
sx={{flexGrow: 1, p: 2, mt: 2}}
|
||||
>
|
||||
<DenyeTeks denyeTeks={denyeTeks} />
|
||||
</Box>
|
||||
<Footer />
|
||||
</Box>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user