- merged with develop;

- removed unused variables;
This commit is contained in:
Vitalii Kiiko
2024-11-11 14:33:30 +01:00
parent cff391ae9c
commit fd4764d119
14 changed files with 40 additions and 95 deletions

View File

@@ -14,7 +14,7 @@ import DashboardService from '../../service/dashboard-service';
import LatestBandiTable from './components/LatestBandiTable';
//import LatestUsersActivityTable from './components/LatestUsersActivityTable';
import { Button } from 'primereact/button';
import MyEvaluationsTable from '../DashboardPreInstructor/components/PreInstructorDomandeTable';
//import MyEvaluationsTable from '../DashboardPreInstructor/components/PreInstructorDomandeTable';
import AllDomandeTable from '../Domande/components/AllDomandeTable';
const Dashboard = () => {
@@ -37,10 +37,6 @@ const Dashboard = () => {
console.log('onGoToSettings')
}*/
function formatToMillions(num) {
return Math.abs(num) > 999 ? Math.sign(num)*((Math.abs(num)/1000000).toFixed(1)) + 'M' : Math.sign(num)*Math.abs(num)
}
const getStatValue = (key, fallback = '') => {
return pathOr(fallback, [key], mainStats);
}