Merge pull request #8156 from WarlenRodrigues/fixing_link_somponents_usage

Fixed Link components usage. Now, all links use the Backstage's Link c…
This commit is contained in:
Fredrik Adelöw
2021-12-21 08:10:15 +01:00
committed by GitHub
20 changed files with 85 additions and 61 deletions
@@ -15,9 +15,10 @@
*/
import React from 'react';
import { List, Link, ListItem } from '@material-ui/core';
import { List, ListItem } from '@material-ui/core';
import { SearchResult, SearchContext, DefaultResultListItem } from '../index';
import { MemoryRouter } from 'react-router';
import { Link } from '@backstage/core-components';
export default {
title: 'Plugins/Search/SearchResult',
@@ -79,7 +80,7 @@ export const Default = () => {
default:
return (
<ListItem>
<Link href={document.location}>
<Link to={document.location}>
{document.title} - {document.text}
</Link>
</ListItem>