File tree Expand file tree Collapse file tree
frontend/src/pages/DataManagement/Detail/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // typescript
2- // File: `frontend/src/pages/DataManagement/Detail/components/DataQuality.tsx`
31import React , { useMemo } from "react" ;
4- // Run `npm install antd lucide-react` if your editor reports "Module is not installed"
52import { Card , Table , Progress } from "antd" ;
63import { AlertTriangle , Tags , BarChart3 } from "lucide-react" ;
7- import DevelopmentInProgress from "@/components/DevelopmentInProgress" ;
84import { Dataset } from "@/pages/DataManagement/dataset.model.ts" ;
95import { useTranslation } from "react-i18next" ;
106
@@ -34,6 +30,7 @@ function randInt(min: number, max: number) {
3430}
3531
3632function getMockMetrics ( datasetType : DatasetType , stats : FileStats ) {
33+ const { t } = useTranslation ( ) ;
3734 const total = Math . max ( 1 , stats . totalFiles || 1 ) ;
3835 const corrupted = stats . corrupted || 0 ;
3936 const unlabeled = stats . unlabeled || 0 ;
You can’t perform that action at this time.
0 commit comments