diff --git a/README.md b/README.md index 0ff466b..a22c684 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,11 @@ In this lockdown our Hands-on Laboratory Activities are suffering the mos

So, as the major part of our ClassPortal we tried to solve this issue by introducing Interactive Simulation in our project. -![alt text](https://github.com/ShahriarDhruvo/HackTheVerse_SUST_NOOBs/blob/main/Cell_Simulation_Screenshots/Screenshot%20(150).png?raw=true) +![alt text](https://github.com/ShahriarDhruvo/HackTheVerse_SUST_NOOBs/blob/main/screenshots/Screenshot%20(150).png?raw=true) -![alt text](https://github.com/ShahriarDhruvo/HackTheVerse_SUST_NOOBs/blob/main/Cell_Simulation_Screenshots/Screenshot%20(154).png?raw=true) +![alt text](https://github.com/ShahriarDhruvo/HackTheVerse_SUST_NOOBs/blob/main/screenshots/Screenshot%20(154).png?raw=true) -![alt text](https://github.com/ShahriarDhruvo/HackTheVerse_SUST_NOOBs/blob/main/Cell_Simulation_Screenshots/Screenshot%20(155).png?raw=true) +![alt text](https://github.com/ShahriarDhruvo/HackTheVerse_SUST_NOOBs/blob/main/screenshots/Screenshot%20(155).png?raw=true) # How to run this project 1. Install the dependencies in server/requirements.txt diff --git a/frontend/src/components/CreateCourse/CreateCourse.js b/frontend/src/components/CreateCourse/CreateCourse.js index bfae174..a7b4cb9 100644 --- a/frontend/src/components/CreateCourse/CreateCourse.js +++ b/frontend/src/components/CreateCourse/CreateCourse.js @@ -29,7 +29,7 @@ function CreateCourse() { const [courses, setCourses] = useState(null); //const [select_course, set_select_course] = useState(null); //const [created_rooms, set_Created_rooms] = useState([]); - const [errors, seterrors] = useState('') + const [errors, seterrors] = useState(""); const handleClose = () => setShow(false); const handleShow = () => setShow(true); @@ -77,7 +77,6 @@ function CreateCourse() { }); }; fetchuserrooms();*/ - }, []); const handle_course_create = (e, data) => { @@ -96,7 +95,7 @@ function CreateCourse() { //console.log(response.data); }) .catch((err) => { - seterrors('The item from this course is already created') + seterrors("The item from this course is already created"); }); }; create_room(); @@ -107,11 +106,11 @@ function CreateCourse() { courses.length > 0 && courses.map((item, i) => { //if(!created_rooms.includes(item.id)){ - return ( - - ); + return ( + + ); //} }); return ( @@ -128,9 +127,9 @@ function CreateCourse() {

Create Room

- {Object.keys(errors).length !==0 ? ( + {Object.keys(errors).length !== 0 && ( - ):(

)} + )}
- ); diff --git a/frontend/src/components/Footer/Footer.js b/frontend/src/components/Footer/Footer.js index 3845d5a..7c3e5de 100644 --- a/frontend/src/components/Footer/Footer.js +++ b/frontend/src/components/Footer/Footer.js @@ -10,7 +10,7 @@ const Footer = () => {