Compare commits

...

5 Commits

Author SHA1 Message Date
doannamq cfc0895551 Fix: fix chart trên prod 2 months ago
doannamq fb84ce54b8 chore 2 months ago
doannamq 8697eac896 Resolve merge master 2 months ago
minh android 7c3d118536 bo fix cung 8 months ago
minh android 32ffb3d12f link fix 8 months ago
  1. 4
      package.json
  2. 15
      src/_helpers/chartRegister.js
  3. 4
      src/_screens/home/teacher/index.js
  4. 1
      src/index.js

@ -59,8 +59,8 @@
"@babel/core": "7.16.0"
},
"scripts": {
"start": "react-scripts --max_old_space_size=4096 start",
"build": "react-scripts --max_old_space_size=4096 build",
"start": "react-scripts --openssl-legacy-provider --max_old_space_size=4096 start",
"build": "react-scripts --openssl-legacy-provider --max_old_space_size=4096 build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "eslint src",

@ -0,0 +1,15 @@
import { Chart, ArcElement, DoughnutController, Tooltip, Legend, CategoryScale, LinearScale, BarElement, BarController, LineController, LineElement, PointElement } from 'chart.js';
Chart.register(
ArcElement,
DoughnutController,
Tooltip,
Legend,
CategoryScale,
LinearScale,
BarElement,
BarController,
LineController,
LineElement,
PointElement
);

@ -260,13 +260,13 @@ export default function TeacherHome() {
<div className="teacher-home-info-assign-box">
<img src="/assets/imgs/icon_group.png" />
<span style={{fontWeight: 700}}>{"Tổng số lớp: "}
<span style={{color: PRIMARY_COLOR}}>{totalClass}</span>
<span style={{color: PRIMARY_COLOR}}>{listClass?.length}</span>
</span>
</div>
<div className="teacher-home-info-assign-box">
<img src="/assets/imgs/icon_assign_class.png" />
<span style={{fontWeight: 700}}>{"Tổng số lần giao: "}
<span style={{color: PRIMARY_COLOR}}>{totalAssign}</span>
<span style={{color: PRIMARY_COLOR}}>{countAss(listClass)}</span>
</span>
</div>
</div>

@ -1,5 +1,6 @@
import React from "react";
import ReactDOM from "react-dom";
import "./_helpers/chartRegister"
import App from "./App";
import registerServiceWorker from "./registerServiceWorker";
import appReducers from "./_reducers";

Loading…
Cancel
Save