@@ -5,12 +5,12 @@ import DialogActions from '@mui/material/DialogActions';
5
5
import DialogContent from '@mui/material/DialogContent' ;
6
6
import DialogContentText from '@mui/material/DialogContentText' ;
7
7
import DialogTitle from '@mui/material/DialogTitle' ;
8
- import { useEffect , useRef , useState } from "react" ;
8
+ import { useEffect , useRef , useState } from "react" ;
9
9
import axios from "axios" ;
10
10
import DisplayComment from "./DisplayComment" ;
11
11
import CreateComment from "./CreateComment" ;
12
12
13
- export default function Comment ( { tutoId} ) {
13
+ export default function Comment ( { tutoId } ) {
14
14
const [ open , setOpen ] = useState ( false ) ;
15
15
const [ scroll , setScroll ] = useState ( 'paper' ) ;
16
16
const [ allComments , setAllComments ] = useState ( [ ] ) ;
@@ -35,7 +35,7 @@ export default function Comment({tutoId}) {
35
35
useEffect ( ( ) => {
36
36
if ( open ) {
37
37
getComments ( ) ;
38
- const { current : descriptionElement } = descriptionElementRef ;
38
+ const { current : descriptionElement } = descriptionElementRef ;
39
39
if ( descriptionElement !== null ) {
40
40
descriptionElement . focus ( ) ;
41
41
}
@@ -63,13 +63,13 @@ export default function Comment({tutoId}) {
63
63
tabIndex = { - 1 }
64
64
>
65
65
{ allComments . map ( ( comment ) => (
66
- < DisplayComment comment = { comment } />
66
+ < DisplayComment comment = { comment } />
67
67
) ) }
68
68
69
69
</ DialogContentText >
70
70
</ DialogContent >
71
71
< DialogActions >
72
- < CreateComment tutoId = { tutoId } />
72
+ < CreateComment tutoId = { tutoId } />
73
73
< Button variant = "outlined" onClick = { handleClose } > Fermer</ Button >
74
74
</ DialogActions >
75
75
</ Dialog >
0 commit comments