Merge pull request #4981 from niallmccullagh/techradar-add-description

feat(plugin-tech-radar): map description in API RadarEntry to Entry
This commit is contained in:
Fredrik Adelöw
2021-03-16 23:24:10 +01:00
committed by GitHub
4 changed files with 15 additions and 1 deletions
+1
View File
@@ -38,6 +38,7 @@ export interface RadarEntry {
title: string;
url: string;
timeline: Array<RadarEntrySnapshot>;
description?: string;
}
export interface RadarEntrySnapshot {
@@ -68,7 +68,7 @@ const RadarComponent = (props: TechRadarComponentProps): JSX.Element => {
};
}),
moved: entry.timeline[0].moved,
description: entry.timeline[0].description,
description: entry.description || entry.timeline[0].description,
url: entry.url,
};
});
+4
View File
@@ -49,6 +49,8 @@ entries.push({
id: 'javascript',
title: 'JavaScript',
quadrant: 'languages',
description:
'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',
});
entries.push({
timeline: [
@@ -65,6 +67,8 @@ entries.push({
id: 'typescript',
title: 'TypeScript',
quadrant: 'languages',
description:
'Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat',
});
entries.push({
timeline: [