File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Frontend/src/components/question Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 1
1
import React , { useState , useEffect } from 'react' ;
2
- import { Link } from 'react-router-dom' ;
3
2
import Modal from "react-bootstrap/Modal" ;
4
3
import Table from "react-bootstrap/Table" ;
5
4
import ButtonGroup from "react-bootstrap/ButtonGroup" ;
@@ -14,8 +13,7 @@ function Question() {
14
13
const [ questionToDelete , setQuestionToDelete ] = useState ( null ) ;
15
14
const [ showEditModal , setShowEditModal ] = useState ( false ) ;
16
15
const [ currentQuestion , setCurrentQuestion ] = useState ( null ) ;
17
- const [ error , setError ] = useState ( "" )
18
-
16
+
19
17
const handleShow = ( ) => setShowComponent ( true ) ;
20
18
const handleClose = ( ) => setShowComponent ( false ) ;
21
19
@@ -50,7 +48,6 @@ function Question() {
50
48
51
49
const handleCloseEditModal = ( ) => {
52
50
setShowEditModal ( false ) ;
53
- setError ( "" ) ;
54
51
}
55
52
56
53
// Show the delete confirmation modal
You can’t perform that action at this time.
0 commit comments