kyd-shared-badge 0.1.0 → 0.1.1
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
|
@@ -56,7 +56,7 @@ const ScoreCard = ({ title, score, description, descriptor, icon: Icon, scoreTyp
|
|
|
56
56
|
);
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
-
const SharedBadgeDisplay = ({ badgeData }: { badgeData: PublicBadgeData }) => {
|
|
59
|
+
const SharedBadgeDisplay = ({ badgeData, type = 'individual' }: { badgeData: PublicBadgeData, type?: 'recruiter' | 'individual' }) => {
|
|
60
60
|
const { badgeId, developerName, assessmentResult, updatedAt, connectedPlatforms } = badgeData;
|
|
61
61
|
const { summary_scores, report_summary, developer_trust_explanation, key_skills, screening_sources, industry_considerations } = assessmentResult;
|
|
62
62
|
|
|
@@ -64,8 +64,10 @@ const SharedBadgeDisplay = ({ badgeData }: { badgeData: PublicBadgeData }) => {
|
|
|
64
64
|
const riskScore = summary_scores.risk_score;
|
|
65
65
|
const aiUsageScore = summary_scores.ai_usage;
|
|
66
66
|
|
|
67
|
+
const wrapperMaxWidth = type === 'recruiter' ? 'max-w-5xl' : 'max-w-6xl';
|
|
68
|
+
|
|
67
69
|
return (
|
|
68
|
-
<div className=
|
|
70
|
+
<div className={`${wrapperMaxWidth} mx-auto`}>
|
|
69
71
|
<div className="flex justify-end items-center mb-4">
|
|
70
72
|
<ShareButton
|
|
71
73
|
badgeId={badgeId}
|