|
|
@ -13,10 +13,12 @@ import BoxDoughnutBarChart from "../../../_components/boxChart/BoxDoughnutBarCha |
|
|
|
import { apiCaller, history } from "../../../_helpers"; |
|
|
|
import { apiCaller, history } from "../../../_helpers"; |
|
|
|
import { replacePathParams } from "../../../_helpers/utils"; |
|
|
|
import { replacePathParams } from "../../../_helpers/utils"; |
|
|
|
import $ from "jquery"; |
|
|
|
import $ from "jquery"; |
|
|
|
import { useParams } from "react-router-dom"; |
|
|
|
import { useLocation, useParams } from "react-router-dom"; |
|
|
|
|
|
|
|
|
|
|
|
export default function DetailRoomEducation() { |
|
|
|
export default function DetailRoomEducation() { |
|
|
|
const {idRoom,isBack} = useParams() |
|
|
|
const {idRoom} = useParams() |
|
|
|
|
|
|
|
const location = useLocation(); |
|
|
|
|
|
|
|
const isBack = location.state?.isBack; |
|
|
|
const grade = useSelector((state) => state.grade); |
|
|
|
const grade = useSelector((state) => state.grade); |
|
|
|
const authentication = useSelector((state) => state.authentication); |
|
|
|
const authentication = useSelector((state) => state.authentication); |
|
|
|
const [dateStudentChart, setDateStudentChart] = useState(new Date()) |
|
|
|
const [dateStudentChart, setDateStudentChart] = useState(new Date()) |
|
|
|