fix: Add ReadComents to Konstitisyon component
This commit is contained in:
@@ -12,6 +12,7 @@ import AuthAlert from '../auth-form/auth-alert.js'
|
||||
import Titre from './titre.js'
|
||||
import Article from './article.js'
|
||||
import HandleCreate from './create/handle-create.js'
|
||||
import ReadComments from './comments/read-comments.js'
|
||||
import {formatKonstitisyon} from '@/lib/format.js'
|
||||
|
||||
const LightTooltip = styled(({className, ...props}) => (
|
||||
@@ -97,6 +98,17 @@ export default function Konstitisyon({session, titres, articles}) {
|
||||
collection='commentaires'
|
||||
/>
|
||||
)}
|
||||
|
||||
{selectedTitre && operation === 'read' && (
|
||||
<ReadComments
|
||||
session={session}
|
||||
selectedTitre={selectedTitre}
|
||||
isOpen={isDialogOpen}
|
||||
setIsOpen={setIsDialogOpen}
|
||||
setError={setError}
|
||||
setIsErrorAlertOpen={setIsErrorAlertOpen}
|
||||
/>
|
||||
)}
|
||||
</Box>
|
||||
</>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user