|
|
@ -19,13 +19,15 @@ import { useEffect, useState,useRef } from "react"; |
|
|
|
import { apiCaller, history } from "../../../_helpers"; |
|
|
|
import { apiCaller, history } from "../../../_helpers"; |
|
|
|
import { configConstants } from "../../../_constants"; |
|
|
|
import { configConstants } from "../../../_constants"; |
|
|
|
import { exportExcel } from "../../../_helpers/utils"; |
|
|
|
import { exportExcel } from "../../../_helpers/utils"; |
|
|
|
import { useParams } from "react-router-dom"; |
|
|
|
import { useLocation, useParams } from "react-router-dom"; |
|
|
|
|
|
|
|
|
|
|
|
export default function TeacherHome() { |
|
|
|
export default function TeacherHome() { |
|
|
|
const search = history?.location?.search; |
|
|
|
const search = history?.location?.search; |
|
|
|
const params = new URLSearchParams(search); |
|
|
|
const params = new URLSearchParams(search); |
|
|
|
const teacher_name = params.get("teacher_name"); |
|
|
|
const teacher_name = params.get("teacher_name"); |
|
|
|
const { teacherId } = useParams(); |
|
|
|
const { teacherId } = useParams(); |
|
|
|
|
|
|
|
const location = useLocation(); |
|
|
|
|
|
|
|
const isBack = location.state?.isBack;
|
|
|
|
const authentication = useSelector((state) => state.authentication); |
|
|
|
const authentication = useSelector((state) => state.authentication); |
|
|
|
const [schoolYear, setSchoolYear] = useState( |
|
|
|
const [schoolYear, setSchoolYear] = useState( |
|
|
|
defaultMonthYearSemester.schoolYear, |
|
|
|
defaultMonthYearSemester.schoolYear, |
|
|
@ -226,6 +228,7 @@ export default function TeacherHome() { |
|
|
|
<Header |
|
|
|
<Header |
|
|
|
icon={renderIconHome({ color: "#4D4D4D" })} |
|
|
|
icon={renderIconHome({ color: "#4D4D4D" })} |
|
|
|
title={"Danh sách lớp của giáo viên " + teacherName} |
|
|
|
title={"Danh sách lớp của giáo viên " + teacherName} |
|
|
|
|
|
|
|
isBack={isBack} |
|
|
|
/> |
|
|
|
/> |
|
|
|
<div className="container-page-header container-page-sidebar"> |
|
|
|
<div className="container-page-header container-page-sidebar"> |
|
|
|
<div className="teacher-home-container bg-main-img"> |
|
|
|
<div className="teacher-home-container bg-main-img"> |
|
|
|