Add links to non-marvel proto

This commit is contained in:
JUDIT GRESKOVITS 2017-03-21 11:37:37 +00:00 committed by Judit Greskovits
parent 5459220c77
commit bb317169a4
3 changed files with 18 additions and 8 deletions

View File

@ -30,13 +30,19 @@ const Section = (props) => {
links = []
} = props;
const navLinks = links.map((link) => (
<StyledHorizontalListItem key={link.name}>
<NavLink activeClassName='active' to={link.pathname}>
<FormattedMessage id={link.name} />
</NavLink>
</StyledHorizontalListItem>
));
const navLinks = links.map((link) => {
const to = link.name === 'instances' ?
// eslint-disable-next-line max-len
'https://projects.invisionapp.com/share/YDAKI8CW4#/screens/224677771_instances' :
link.pathname;
return (
<StyledHorizontalListItem key={link.name}>
<NavLink activeClassName='active' to={to}>
<FormattedMessage id={link.name} />
</NavLink>
</StyledHorizontalListItem>
);
});
return (
<div>

View File

@ -5,10 +5,14 @@ const ServicesTooltip = ({
show,
position
}) => {
// eslint-disable-next-line max-len
const scaleLink = 'https://projects.invisionapp.com/share/YDAKI8CW4#/screens/221841542_Deployed_Services_1-8';
return show ? (
<Tooltip {...position}>
<li>
<TooltipButton>Scale</TooltipButton>
<TooltipButton href={scaleLink}>
Scale
</TooltipButton>
</li>
<li>
<TooltipButton>Rollback</TooltipButton>

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB