Move components inside folders
Signed-off-by: Andrea Pavone <info@andreapavone.com>
This commit is contained in:
@ -27,9 +27,7 @@ export default function SecurityScoresOverviewBarChart({ reportData }: { reportD
|
||||
{ metric: 'Spoofing', score: reportData.spoofing_score },
|
||||
{ metric: 'Open Port', score: reportData.open_ports_score },
|
||||
{ metric: 'Blacklist', score: reportData.blacklist_score },
|
||||
{ metric: 'Certificate', score: reportData.certificate_score },
|
||||
{ metric: 'Active Vulnerability', score: reportData.vulnerability_score_active },
|
||||
{ metric: 'Passive Vulnerability', score: reportData.vulnerability_score_passive },
|
||||
{ metric: 'Certificate', score: reportData.certificate_score }
|
||||
|
||||
], [reportData]);
|
||||
|
||||
@ -43,7 +41,6 @@ export default function SecurityScoresOverviewBarChart({ reportData }: { reportD
|
||||
},
|
||||
} satisfies ChartConfig;
|
||||
|
||||
// Calculate average score and trend
|
||||
const averageScore = useMemo(() => {
|
||||
const sum = chartData.reduce((acc, curr) => acc + curr.score, 0);
|
||||
return Math.round(sum / chartData.length);
|
||||
|
||||
Reference in New Issue
Block a user