forked from CSI-KJSCE/appointment_to_examiner
toggle error fixed
This commit is contained in:
@@ -18,12 +18,14 @@ import DepartmentConsolidated from "./Pages/DepartmentConsolidated";
|
|||||||
import PanelConsolidated from "./Pages/PanelConsolidated";
|
import PanelConsolidated from "./Pages/PanelConsolidated";
|
||||||
import { AdminFacultyPage } from "./Pages/AdminFacultyPage";
|
import { AdminFacultyPage } from "./Pages/AdminFacultyPage";
|
||||||
import AdminCoursePage from "./Pages/AdminCoursePage";
|
import AdminCoursePage from "./Pages/AdminCoursePage";
|
||||||
|
import { ToastContainer } from "react-toastify";
|
||||||
|
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TokenRefresher />
|
<TokenRefresher />
|
||||||
|
<ToastContainer/>
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route path="/" element={<AuthPage />}></Route>
|
<Route path="/" element={<AuthPage />}></Route>
|
||||||
<Route path="/course-form/:id" element={<PrivateRoute element={<CourseForm />} />} />
|
<Route path="/course-form/:id" element={<PrivateRoute element={<CourseForm />} />} />
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React, { useState, useEffect } from "react";
|
import React, { useState, useEffect } from "react";
|
||||||
import { Container, Col, Row, Button, Spinner } from "react-bootstrap";
|
import { Container, Col, Row, Button, Spinner } from "react-bootstrap";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import { ToastContainer, toast } from "react-toastify";
|
import { toast } from "react-toastify";
|
||||||
import "react-toastify/dist/ReactToastify.css";
|
import "react-toastify/dist/ReactToastify.css";
|
||||||
import Navbar from "./Navbar";
|
import Navbar from "./Navbar";
|
||||||
import Footer from "./Footer";
|
import Footer from "./Footer";
|
||||||
@@ -9,7 +9,7 @@ import Footer from "./Footer";
|
|||||||
function HomePage(props) {
|
function HomePage(props) {
|
||||||
|
|
||||||
const notifyLoading = () => {
|
const notifyLoading = () => {
|
||||||
toast.info("Logging Out Successfull..");
|
toast.info("Logging Out Successfully..");
|
||||||
};
|
};
|
||||||
|
|
||||||
const [user, setUser] = useState(null);
|
const [user, setUser] = useState(null);
|
||||||
@@ -61,7 +61,6 @@ function HomePage(props) {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Navbar />
|
<Navbar />
|
||||||
<ToastContainer />
|
|
||||||
<div className="LoginPage">
|
<div className="LoginPage">
|
||||||
<Container className="HomePageContainer ProfileContainer">
|
<Container className="HomePageContainer ProfileContainer">
|
||||||
{loading ? (
|
{loading ? (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React, { useState, useEffect } from 'react';
|
import React, { useState, useEffect } from 'react';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import Navbar from './Navbar';
|
import Navbar from './Navbar';
|
||||||
import { toast, ToastContainer } from "react-toastify";
|
import { toast} from "react-toastify";
|
||||||
import 'react-toastify/dist/ReactToastify.css';
|
import 'react-toastify/dist/ReactToastify.css';
|
||||||
import { useNavigate } from 'react-router-dom';
|
import { useNavigate } from 'react-router-dom';
|
||||||
import Footer from './Footer';
|
import Footer from './Footer';
|
||||||
@@ -149,7 +149,6 @@ export const AdminCoursePage = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Navbar />
|
<Navbar />
|
||||||
<ToastContainer />
|
|
||||||
<div style={{ fontFamily: 'Arial, sans-serif', backgroundColor: '#f4f6f9', padding: '20px' }}>
|
<div style={{ fontFamily: 'Arial, sans-serif', backgroundColor: '#f4f6f9', padding: '20px' }}>
|
||||||
<h2 style={{ textAlign: 'center', color: '#333', marginBottom: '20px' }}>Course Management</h2>
|
<h2 style={{ textAlign: 'center', color: '#333', marginBottom: '20px' }}>Course Management</h2>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React, { useState, useEffect } from 'react';
|
import React, { useState, useEffect } from 'react';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import Navbar from './Navbar';
|
import Navbar from './Navbar';
|
||||||
import { toast, ToastContainer } from "react-toastify";
|
import { toast } from "react-toastify";
|
||||||
import 'react-toastify/dist/ReactToastify.css';
|
import 'react-toastify/dist/ReactToastify.css';
|
||||||
import { useNavigate } from 'react-router-dom';
|
import { useNavigate } from 'react-router-dom';
|
||||||
import Footer from './Footer';
|
import Footer from './Footer';
|
||||||
@@ -59,7 +59,7 @@ export const AdminFacultyPage = () => {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error during unauthorized access handling:", error);
|
console.error("Error during unauthorized access handling:", error);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!isLoading) {
|
if (!isLoading) {
|
||||||
@@ -302,7 +302,7 @@ export const AdminFacultyPage = () => {
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -378,7 +378,7 @@ export const AdminFacultyPage = () => {
|
|||||||
)}
|
)}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table >
|
</table >
|
||||||
<Footer/>
|
<Footer />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import axios from "axios";
|
|||||||
import * as XLSX from "xlsx-js-style";
|
import * as XLSX from "xlsx-js-style";
|
||||||
import { sendEmail, createExcelBook } from "../api";
|
import { sendEmail, createExcelBook } from "../api";
|
||||||
import Navbar from "./Navbar";
|
import Navbar from "./Navbar";
|
||||||
import { toast, ToastContainer } from "react-toastify";
|
import { toast } from "react-toastify";
|
||||||
import "react-toastify/dist/ReactToastify.css";
|
import "react-toastify/dist/ReactToastify.css";
|
||||||
import Footer from "./Footer";
|
import Footer from "./Footer";
|
||||||
|
|
||||||
@@ -223,7 +223,6 @@ const ConsolidatedTable = () => {
|
|||||||
minHeight: "100vh"
|
minHeight: "100vh"
|
||||||
}}>
|
}}>
|
||||||
<Navbar />
|
<Navbar />
|
||||||
<ToastContainer />
|
|
||||||
<div style={styles.main}>
|
<div style={styles.main}>
|
||||||
<h1 style={styles.header}>Faculty Tables with Download Options</h1>
|
<h1 style={styles.header}>Faculty Tables with Download Options</h1>
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { useNavigate } from "react-router-dom";
|
|||||||
import "./FilterPage.css";
|
import "./FilterPage.css";
|
||||||
import { fetchCourses } from "../api";
|
import { fetchCourses } from "../api";
|
||||||
import Navbar from "./Navbar";
|
import Navbar from "./Navbar";
|
||||||
import { toast, ToastContainer } from "react-toastify";
|
import { toast } from "react-toastify";
|
||||||
import "react-toastify/dist/ReactToastify.css";
|
import "react-toastify/dist/ReactToastify.css";
|
||||||
|
|
||||||
const FilterPage = () => {
|
const FilterPage = () => {
|
||||||
@@ -90,7 +90,6 @@ const FilterPage = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Navbar />
|
<Navbar />
|
||||||
<ToastContainer />
|
|
||||||
<div className="filter-container">
|
<div className="filter-container">
|
||||||
<div className="filter-form">
|
<div className="filter-form">
|
||||||
<select
|
<select
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ function ForgetPwPage() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ToastContainer />
|
{/* <ToastContainer /> */}
|
||||||
<div className="LoginPage">
|
<div className="LoginPage">
|
||||||
<Container className="LoginPageContainer">
|
<Container className="LoginPageContainer">
|
||||||
<Row className="PwPageContainer">
|
<Row className="PwPageContainer">
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ function AuthPage() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ToastContainer />
|
{/* <ToastContainer /> */}
|
||||||
<div className="LoginPage">
|
<div className="LoginPage">
|
||||||
<Container className={`LoginPageContainer ${signin ? "active" : ""}`}>
|
<Container className={`LoginPageContainer ${signin ? "active" : ""}`}>
|
||||||
<Row>
|
<Row>
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ const Navbar = () => {
|
|||||||
width: "95%",
|
width: "95%",
|
||||||
margin: "0 auto"
|
margin: "0 auto"
|
||||||
}}>
|
}}>
|
||||||
<ToastContainer />
|
{/* <ToastContainer /> */}
|
||||||
|
|
||||||
<NavLink to="/Welcome">
|
<NavLink to="/Welcome">
|
||||||
<img src="logo_.png" alt="Logo" style={{
|
<img src="logo_.png" alt="Logo" style={{
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ function ResetPwPage() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ToastContainer />
|
{/* <ToastContainer /> */}
|
||||||
<div className="LoginPage">
|
<div className="LoginPage">
|
||||||
<Container className="LoginPageContainer">
|
<Container className="LoginPageContainer">
|
||||||
<Row className="PwPageContainer">
|
<Row className="PwPageContainer">
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import axios from "axios";
|
|||||||
import { jsPDF } from "jspdf";
|
import { jsPDF } from "jspdf";
|
||||||
import autoTable from "jspdf-autotable";
|
import autoTable from "jspdf-autotable";
|
||||||
import Navbar from "./Navbar";
|
import Navbar from "./Navbar";
|
||||||
import { toast, ToastContainer } from "react-toastify";
|
import { toast } from "react-toastify";
|
||||||
import { sendEmail } from "../api";
|
import { sendEmail } from "../api";
|
||||||
import Footer from "./Footer";
|
import Footer from "./Footer";
|
||||||
|
|
||||||
@@ -457,7 +457,6 @@ const CourseConsolidated = () => {
|
|||||||
minHeight: "100vh"
|
minHeight: "100vh"
|
||||||
}}>
|
}}>
|
||||||
<Navbar />
|
<Navbar />
|
||||||
<ToastContainer />
|
|
||||||
<div style={{flexGrow:1}}>
|
<div style={{flexGrow:1}}>
|
||||||
<h1
|
<h1
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
Reference in New Issue
Block a user