kyd-shared-badge 0.1.8 → 0.1.10

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.8",
3
+ "version": "0.1.10",
4
4
  "private": false,
5
5
  "main": "./src/index.ts",
6
6
  "module": "./src/index.ts",
@@ -164,6 +164,7 @@ const SharedBadgeDisplay = ({ badgeData, type = 'individual' }: { badgeData: Pub
164
164
  platforms={connectedPlatforms || []}
165
165
  insights={assessmentResult.provider_insights}
166
166
  variant="public"
167
+ view={type}
167
168
  />
168
169
  </div>
169
170
 
@@ -40,8 +40,9 @@ export default function ProviderInsights({ platforms, insights, variant = 'priva
40
40
  return (
41
41
  <div className="space-y-6">
42
42
  {platforms.map(platform => {
43
- const Icon = platform.name ? providerIcons[platform.name] : null;
44
- const providerInsight = insights[platform.name];
43
+ const accessor = platform.name.toLowerCase();
44
+ const Icon = platform.name ? providerIcons[accessor] : null;
45
+ const providerInsight = insights[accessor];
45
46
  const observedDate = platform.observedAt ? new Date(platform.observedAt).toLocaleDateString(undefined, {
46
47
  year: 'numeric',
47
48
  month: 'short',