Merge pull request #4290 from niallmccullagh/master
tech-radar: fix mapping of moved attribute and made urls clickable
This commit is contained in:
@@ -59,7 +59,7 @@ const RadarComponent = (props: TechRadarComponentProps): JSX.Element => {
|
||||
ring: loaderResponse!.rings.find(
|
||||
r => r.id === entry.timeline[0].ringId,
|
||||
)!,
|
||||
history: entry.timeline.map(e => {
|
||||
timeline: entry.timeline.map(e => {
|
||||
return {
|
||||
date: e.date,
|
||||
ring: loaderResponse!.rings.find(a => a.id === e.ringId)!,
|
||||
@@ -67,6 +67,8 @@ const RadarComponent = (props: TechRadarComponentProps): JSX.Element => {
|
||||
moved: e.moved,
|
||||
};
|
||||
}),
|
||||
moved: entry.timeline[0].moved,
|
||||
url: entry.url,
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
@@ -71,12 +71,12 @@ const useStyles = makeStyles<Theme>(theme => ({
|
||||
'font-feature-settings': 'pnum',
|
||||
},
|
||||
entry: {
|
||||
pointerEvents: 'none',
|
||||
pointerEvents: 'visiblePainted',
|
||||
userSelect: 'none',
|
||||
fontSize: '11px',
|
||||
},
|
||||
entryLink: {
|
||||
pointerEvents: 'none',
|
||||
pointerEvents: 'visiblePainted',
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ entries.push({
|
||||
entries.push({
|
||||
timeline: [
|
||||
{
|
||||
moved: 0,
|
||||
moved: -1,
|
||||
ringId: 'use',
|
||||
date: new Date('2020-08-06'),
|
||||
description:
|
||||
@@ -69,7 +69,7 @@ entries.push({
|
||||
entries.push({
|
||||
timeline: [
|
||||
{
|
||||
moved: 0,
|
||||
moved: 1,
|
||||
ringId: 'use',
|
||||
date: new Date('2020-08-06'),
|
||||
},
|
||||
@@ -88,7 +88,7 @@ entries.push({
|
||||
date: new Date('2020-08-06'),
|
||||
},
|
||||
],
|
||||
url: '#',
|
||||
url: 'https://reactjs.org/',
|
||||
key: 'react',
|
||||
id: 'react',
|
||||
title: 'React',
|
||||
|
||||
Reference in New Issue
Block a user