From 32ffb3d12fb3fcfdd6beb335d234252d6a1493c6 Mon Sep 17 00:00:00 2001 From: minh android Date: Wed, 9 Apr 2025 11:01:59 +0700 Subject: [PATCH 1/2] link fix --- src/_constants/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_constants/config.js b/src/_constants/config.js index 107be33..6c0314b 100644 --- a/src/_constants/config.js +++ b/src/_constants/config.js @@ -1,4 +1,4 @@ -const enviroment = ".dev"; +const enviroment = ""; export const configConstants = { API_URL: "", From 7c3d1185365cd961fe8b87acc90d8465f0695cb4 Mon Sep 17 00:00:00 2001 From: minh android Date: Wed, 9 Apr 2025 11:53:32 +0700 Subject: [PATCH 2/2] bo fix cung --- src/_screens/home/teacher/index.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/_screens/home/teacher/index.js b/src/_screens/home/teacher/index.js index 41e5494..2c5fa48 100644 --- a/src/_screens/home/teacher/index.js +++ b/src/_screens/home/teacher/index.js @@ -66,6 +66,14 @@ export default function TeacherHome() { setMonth(getListMonthBySemester(item?.value)?.[0]); }; + const countAss = (listdata) => { + var sum = 0 + listdata.forEach(element => { + sum = sum + element.assign_number + }); + return sum + }; + const handleFilter = () => { getData(); }; @@ -157,13 +165,13 @@ export default function TeacherHome() {
{"Tổng số lớp: "} - 5 + {listClass?.length}
{"Tổng số lần giao: "} - 50 + {countAss(listClass)}