Add NextTopLoader and fix Footer position

This commit is contained in:
2023-07-22 23:38:08 +04:00
parent c7223ce6ad
commit c63943c6fe
5 changed files with 25 additions and 9 deletions
+4 -4
View File
@@ -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>
)
}