kyd-shared-badge 0.1.16 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kyd-shared-badge",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "private": false,
5
5
  "main": "./src/index.ts",
6
6
  "module": "./src/index.ts",
@@ -9,6 +9,7 @@ import ReportHeader from './components/ReportHeader';
9
9
  import AppendixTables from './components/AppendixTables';
10
10
  import ProviderInsights from './components/ProviderInsights';
11
11
  import IpRiskAnalysisDisplay from './components/IpRiskAnalysisDisplay';
12
+ import Image from 'next/image';
12
13
 
13
14
  // Icon images from this package's public folder (will be bundled as assets)
14
15
  import RiskGreen from './public/riskgreen.png';
@@ -94,7 +95,7 @@ const ScoreCard = ({ title, score, description, descriptor, icon: Icon, scoreTyp
94
95
  <div className={`text-3xl mb-4 ${scoreColor}`}>
95
96
  {iconImageSrc ? (
96
97
  // eslint-disable-next-line @next/next/no-img-element
97
- <img src={iconImageSrc} alt="icon" className="h-8 w-8 object-contain" />
98
+ <Image src={iconImageSrc} alt="icon" className="h-8 w-8 object-contain" />
98
99
  ) : (
99
100
  <Icon />
100
101
  )}