Don't explicitly set target but instead fallback to the logic in the Link component

Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
This commit is contained in:
Dominik Henneke
2021-08-30 09:51:07 +02:00
parent 10db3ce099
commit 21becc9441
2 changed files with 0 additions and 2 deletions
@@ -170,7 +170,6 @@ describe('<AboutCard />', () => {
'href',
'https://github.com/backstage/backstage/edit/master/software.yaml',
);
expect(editLink).toHaveAttribute('target', '_blank');
});
it('renders without "view source" link', async () => {
@@ -153,7 +153,6 @@ export function AboutCard({ variant }: AboutCardProps) {
disabled={!entityMetadataEditUrl}
title="Edit Metadata"
to={entityMetadataEditUrl ?? '#'}
target="_blank"
>
<EditIcon />
</IconButton>