Skip to content

Commit 5564c7c

Browse files
committed
Remove unused imports and variables
1 parent 72384ee commit 5564c7c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Frontend/src/components/question/Question.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, { useState, useEffect } from 'react';
2-
import { Link } from 'react-router-dom';
32
import Modal from "react-bootstrap/Modal";
43
import Table from "react-bootstrap/Table";
54
import ButtonGroup from "react-bootstrap/ButtonGroup";
@@ -14,8 +13,7 @@ function Question() {
1413
const [questionToDelete, setQuestionToDelete] = useState(null);
1514
const [showEditModal, setShowEditModal] = useState(false);
1615
const [currentQuestion, setCurrentQuestion] = useState(null);
17-
const [error, setError] = useState("")
18-
16+
1917
const handleShow = () => setShowComponent(true);
2018
const handleClose = () => setShowComponent(false);
2119

@@ -50,7 +48,6 @@ function Question() {
5048

5149
const handleCloseEditModal = () => {
5250
setShowEditModal(false);
53-
setError("");
5451
}
5552

5653
// Show the delete confirmation modal

0 commit comments

Comments
 (0)