Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Title&logo" #36

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed public/iips_logo2.png
Binary file not shown.
4 changes: 1 addition & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/png" href="%PUBLIC_URL%/iips_logo2.png" />

<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
Expand All @@ -25,7 +24,6 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->

<title>Teacher Portal</title>
</head>
<body>
Expand Down
1 change: 0 additions & 1 deletion src/Create_paper/Createpaper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const Createpaper = () => {

useEffect(()=>
{
document.title = "Create-Paper";
setTimeout(()=>{setLoading(false)},1000);
},[]);

Expand Down
1 change: 0 additions & 1 deletion src/Edit_paper/Editpaper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ const Editpaper = () => {

useEffect(()=>
{
document.title = "Edit-Paper";
setTimeout(()=>{setLoading(false)},1000);
},[]);

Expand Down
1 change: 0 additions & 1 deletion src/Forgot_Password/Forgot_Password.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const ForgotPassword = () => {

useEffect(()=>
{
document.title = "Forgot Password";
setTimeout(()=>{setLoading(false);},1000);
},[]);

Expand Down
2 changes: 0 additions & 2 deletions src/Login/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ function Login() {
const navigate = useNavigate(); // Initialize useNavigate

useEffect(() => {
document.title = "Teacher:login";

// Check if session ID exists in local storage and is still valid
const sessionId = localStorage.getItem("sessionId");
if (sessionId) {
Expand Down
1 change: 0 additions & 1 deletion src/QuestionPaperDashboard/QuestionPaperDashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ const QuestionPaperDashboard = () => {
const [hoveredItem, setHoveredItem] = useState(null);

useEffect(() => {
document.title = "Question-paper-Dashboard";
const fetchQuestions = async () => {
try {
const res = await axios.post(
Expand Down
17 changes: 8 additions & 9 deletions src/TeacherDashboard/TeacherDashboard.jsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import React, { useEffect } from 'react';
import React from 'react';
import Navbar from '../Navbar/Navbar';
import Papers from '../papers/papers';

const TeacherDashboard = () => {
useEffect(() => {
document.title = "Teacher Dashboard";
}, []); // Empty dependency array to run only on component mount

return (
<div style={{ overflowX: "hidden" }}>
<Navbar />
<Papers />
const TeacherDashboard=()=>
{
return(
<div style={{overflowX:"hidden"}}>
<Navbar/>
<Papers/>

</div>
);
}
Expand Down
1 change: 0 additions & 1 deletion src/edit_question/EditQuestion.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import AlertModal from '../AlertModal/AlertModal'; // Import the AlertModal comp
import Loader from '../Loader/Loader';

const EditQuestion = () => {
document.title = "Edit-Question";
const { paperId } = useParams();
const location = useLocation();

Expand Down
1 change: 0 additions & 1 deletion src/edit_ready_question/EditReadyQuestion.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import AlertModal from '../AlertModal/AlertModal'; // Import the AlertModal comp


const EditReadyQuestion = () => {
document.title = "Ready Question";
const { paperId } = useParams();
const location = useLocation();

Expand Down
2 changes: 0 additions & 2 deletions src/error/error404.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ export default function Error404() {
}
};



return (
<>
{sessionId && <Navbar/>}
Expand Down
1 change: 0 additions & 1 deletion src/papers/papers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ function Papers() {
const teacherId = localStorage.getItem("teacherId");

useEffect(() => {

const fetchPapers = async () => {
try {
const response = await axios.post(
Expand Down
Loading