Add Create component and Comment button
This commit is contained in:
+5
-1
@@ -6,6 +6,7 @@ import Typography from '@mui/material/Typography'
|
||||
import Konstitisyon from '@/components/konstitisyon/index.js'
|
||||
import Footer from '@/components/footer.js'
|
||||
import Sign from '@/components/session/sign.js'
|
||||
import Create from '@/components/konstitisyon/create.js'
|
||||
|
||||
const apiUrl = process.env.DIRECTUS_API_URL
|
||||
const appTitle = process.env.APP_TITLE
|
||||
@@ -57,7 +58,10 @@ export default async function Page() {
|
||||
<Container maxWidth='sm'>
|
||||
<Typography mt={1} component='h1' textAlign='center' variant='h4'>{appTitle.toUpperCase()}</Typography>
|
||||
<Sign session={session} />
|
||||
<Konstitisyon titres={titres} articles={articles} />
|
||||
{session && (
|
||||
<Create />
|
||||
)}
|
||||
<Konstitisyon session={session} titres={titres} articles={articles} />
|
||||
</Container>
|
||||
<Footer />
|
||||
</Box>
|
||||
|
||||
Reference in New Issue
Block a user