Fied Link components usage. Now, all links use the Backstage's Link component

Signed-off-by: WarlenRodrigues <warlen.cesarrodrigues@gmail.com>
This commit is contained in:
WarlenRodrigues
2021-11-18 21:48:00 -03:00
committed by Fredrik Adelöw
parent 9e18e6b025
commit 22bf2da934
18 changed files with 62 additions and 48 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>