@@ -2,7 +2,6 @@ import React from "react";
2
2
import { Space , Table , Row , Col , Statistic } from 'antd' ;
3
3
import { DeploymentUnitOutlined , SearchOutlined } from '@ant-design/icons' ;
4
4
import type { StatisticProps , TableColumnsType } from "antd/lib" ;
5
- import CountUp from 'react-countup' ;
6
5
import { TargetMetrics , TargetPair } from "@/graphql/__generated__/graphql" ;
7
6
import PortalCard from "../PortalCard" ;
8
7
import { SearchFilterIcon , SearchWidget } from '@/components/SearchWidgets' ;
@@ -20,10 +19,6 @@ interface TargetDataType {
20
19
failure_reason : string //failure reason if any
21
20
}
22
21
23
- const formatter : StatisticProps [ 'formatter' ] = ( value ) => (
24
- < CountUp end = { value as number } separator = "," />
25
- ) ;
26
-
27
22
const TargetMetricsDisplay : React . FC < {
28
23
targetMetrics : TargetMetrics | undefined | null ,
29
24
targetData : TargetPair [ ] | undefined | null ,
@@ -176,11 +171,11 @@ const TargetMetricsDisplay: React.FC<{
176
171
< PortalCard type = "inner" icon = { < DeploymentUnitOutlined /> } titleBits = { [ "Targets" ] } >
177
172
< Row >
178
173
< Space size = "large" >
179
- < Statistic title = "Targets Analyzed" value = { targets_analyzed } formatter = { formatter } />
180
- < Statistic title = "Targets Built Successfully" value = { targets_built_successfully } formatter = { formatter } valueStyle = { { color : "green" } } />
181
- < Statistic title = "Targets Skipped" value = { targets_skipped } formatter = { formatter } valueStyle = { { color : "purple" } } />
182
- < Statistic title = "Targets Configured" value = { targetMetrics ?. targetsConfigured ?? 0 } formatter = { formatter } />
183
- < Statistic title = "Targets Configured Not Including Aspects" value = { targetMetrics ?. targetsConfiguredNotIncludingAspects ?? 0 } formatter = { formatter } />
174
+ < Statistic title = "Targets Analyzed" value = { targets_analyzed } />
175
+ < Statistic title = "Targets Built Successfully" value = { targets_built_successfully } valueStyle = { { color : "green" } } />
176
+ < Statistic title = "Targets Skipped" value = { targets_skipped } valueStyle = { { color : "purple" } } />
177
+ < Statistic title = "Targets Configured" value = { targetMetrics ?. targetsConfigured ?? 0 } />
178
+ < Statistic title = "Targets Configured Not Including Aspects" value = { targetMetrics ?. targetsConfiguredNotIncludingAspects ?? 0 } />
184
179
</ Space >
185
180
</ Row >
186
181
< Row justify = "space-around" align = "middle" >
0 commit comments