Merge pull request #6244 from deepak-bhardwaj-ps/explorer-external-tools

feat: open external tools in new tab
This commit is contained in:
Fredrik Adelöw
2021-07-02 10:03:29 +02:00
committed by GitHub
4 changed files with 19 additions and 4 deletions
@@ -18,7 +18,6 @@ import { ExploreTool } from '@backstage/plugin-explore-react';
import { BackstageTheme } from '@backstage/theme';
import {
Box,
Button,
Card,
CardActions,
CardContent,
@@ -27,6 +26,7 @@ import {
makeStyles,
Typography,
} from '@material-ui/core';
import { Button } from '@backstage/core-components';
import classNames from 'classnames';
import React from 'react';
@@ -97,7 +97,7 @@ export const ToolCard = ({ card, objectFit }: Props) => {
)}
</CardContent>
<CardActions>
<Button color="primary" href={url} disabled={!url}>
<Button color="primary" to={url} disabled={!url}>
Explore
</Button>
</CardActions>