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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user