diff --git a/src/pages/ContentScripts/features/repo-header-labels/view.tsx b/src/pages/ContentScripts/features/repo-header-labels/view.tsx index 7020a32a..2656d3c0 100644 --- a/src/pages/ContentScripts/features/repo-header-labels/view.tsx +++ b/src/pages/ContentScripts/features/repo-header-labels/view.tsx @@ -37,6 +37,27 @@ const View = ({ activity, openrank, participant, contributor, meta }: Props): JS const participantData = generateDataByMonth(participant, meta.updatedAt); const contributorData = generateDataByMonth(contributor, meta.updatedAt); + type Label = { + id: string; + name: string; + type: string; + }; + + const labels: Label[] = meta.labels as Label[]; + + const spans = labels.map((label, index) => ( + + {label.name} + + )); + return (
+ + {spans} +
); };